• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Clearing a user selection with a script

Redcap's Corner

Well-known member
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 = ""

Any thoughts?
 
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?
 
Back
Top