javascript code

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
ppbedz
Experienced User
Posts: 147
Joined: Tue Jun 17, 2014 4:00 pm
First Name: Patti
Last Name: Bednarz
Company Name: McGard
State / Province: New York
Country: United States
Contact:

javascript code

Post by ppbedz »

How would I code the javascript for the "On Select" event of a drop-down selection if I want to turn on the visibility indicator for another field on the screen?

Thank you,
Scott Wagers

Re: javascript code

Post by Scott Wagers »

Patti,

There isn't an onselect event for a select box, but you can use the onchange event property. Which triggers when the select box option is changed.

Not really knowing how you application is supposed to work, you could use something like this in the onchange event in the select box:

Code: Select all

applyProperty("myWidget", "visibility",  "visible");
or

Code: Select all

applyProperty("myWidget", "visibility",  "hidden");
This sets the widget visibility to 'visible' when the onchange event is triggered in the dropdown. You could also set this up to happen when a specific option is selected.
ppbedz
Experienced User
Posts: 147
Joined: Tue Jun 17, 2014 4:00 pm
First Name: Patti
Last Name: Bednarz
Company Name: McGard
State / Province: New York
Country: United States
Contact:

Re: javascript code

Post by ppbedz »

Thank you, Scott
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests