Page 1 of 1
javascript code
Posted: Mon Jun 22, 2015 3:57 pm
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,
Re: javascript code
Posted: Mon Jun 22, 2015 4:40 pm
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.
Re: javascript code
Posted: Tue Jun 23, 2015 9:55 am
by ppbedz
Thank you, Scott