Question on drop downs:
How does one PRE set a drop down list value with a set choice. (ie: not changing the raw data behind the drop down but choosing one value to initially display - eg: select the current yr within a group of years)
Interested in knowing how to set using
specific text within the list
specific value of the text selected
Solved! Go to Solution.
Views
Replies
Total Likes
It is no different than setting a field.
DDlist.rawValue = "Value you want to set"
Paul
Views
Replies
Total Likes
In the Object palette on the Value tab there is a Default dropdown that will have all of the values that you have available for the DD. You can set an initial value there.
Paul
Views
Replies
Total Likes
Sorry - should have been more explicit
Would like to set these values using JS and if possible, by using either the text value or the hidden value..
Views
Replies
Total Likes
It is no different than setting a field.
DDlist.rawValue = "Value you want to set"
Paul
Views
Replies
Total Likes
The attached sets the current value of a year drop-down list based upon the current date.
Steve
Views
Replies
Total Likes
Thanks all
from the example I could see what I was doing wrong
I found that you need to set the DD.rawValue = to the hidden value that you want, not the Display value (assuming that the 2 are different)
Views
Replies
Total Likes
Views
Likes
Replies