Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Redcap's Corner
Senior Member
 
Join Date: Jul 2010
Posts: 149

Old February 23rd, 2015, 01:47 PM
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?
Redcap's Corner is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old February 23rd, 2015, 03:21 PM
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?
Mathias is online now   #2 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 04:45 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.