Senior Member
Join Date: Jul 2010
Posts: 149
|
The default value for a custom expression-based menu is no selection. I have a script that occasionally needs to clear the selection a user has made back to that default in order to function. I'm aware of the "trustme" statement, but I can't seem to figure out how to actually clear the selected value. I've been using the following and getting an error:
Code:
field[usrChosen1].value = "" |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
A menu-based field like usrChosen1 isn't something you can clear.
Taking control out of the user's hands should always be a very last resort. The trustme operation should be something that most people forget about because they only used it that one time. What are you doing that needs to clear a selection? |
#2 |
|
|