0

Linking drop down and buttons together (clicking button changes drop down selection)

Hi Experts,

 

Hope that someone has a tip for me.

I have a drop-down which displays a list of months from current month and back 6 months. Selecting a month will change a variable causing my dashboard to update.

Now, I want to add two buttons into my klip - a Next and Prev button. Clicking on Next will +1 to the selected month and Prev will -1 to the selected month.

I can get the +1 and -1 function to update my variable and also my dashboard. But how do I get my drop-down to update as well to show the selected month changing?

 

Many thanks in advance.

 

Kind regards,

Cheong

 

 

3 comments

  • 1
    Avatar
    Cheong Koo

    Hi Meggan,


    Thank you.

    I need to try it out. Haven't played around with html component yet.

    Thanks again.

    Kind regards,
    Cheong

  • 0
    Avatar
    Meggan King

    Hi Cheong -

    The scenario you describe might be tricky with our current components. You would probably need to use hidden drop-downs to drive the list. An easier approach would be to use the HTML component and use JavaScript to drive the changes. Are you familiar with HTML and JS? Have you played with the HTML component before?

    https://support.klipfolio.com/hc/en-us/articles/215545798-How-to-build-HTML-Template-components?query=html

     

    Thanks!

    Meggan

  • 0
    Avatar
    Meggan King

    Please let us know if you get it working! The community is a great place to share code :)

    - Meggan

Please sign in to leave a comment.