Skip to main content
Participant
July 29, 2021
Answered

add java script event - combobox

  • July 29, 2021
  • 1 reply
  • 167 views

I´m using a combobox from the components menu and when I select the item "a" from the drop-down list the text (dynamic text with an instance name/ID) in the html canvas should change to "name a" and when I select the item "b" from the drop-down list the same text should change to "name b". 

 

I set an instance name to the combobox (sel_combo) and also to the dynamic text of the html canvas (text_canvas).

 

Is it possible to use the Actions panel to add a java script code/event to change the text name ("name a" or "name b") as I select a different item ("a" or "b") from the drop-down list of the combobox?

 

 

    This topic has been closed for replies.
    Correct answer kglad

    yes.  i could show you the code, but i think you would do well to learn how to use animate.

     

    to that end, use the code snippets panel to see how to encode the combobox change event.  if you have trouble understanding how to do that or use that, repost.

    1 reply

    kglad
    Community Expert
    kgladCommunity ExpertCorrect answer
    Community Expert
    July 30, 2021

    yes.  i could show you the code, but i think you would do well to learn how to use animate.

     

    to that end, use the code snippets panel to see how to encode the combobox change event.  if you have trouble understanding how to do that or use that, repost.