Hi All,
Does anybody know if there is a way to set the current "key" value for a Value Drop Down List of a form?
IModifiableSimpleValueSet holds the "key" value and a "text" value. So for example if my drop down had these values
key text
R Red
G Green
B Blue
I can make "Red" be displayed on the form as the default value by using a statement like:
"wdContext.currentMyColorElement().setMyColorValue("Red");"
But if I retrieve the value with a statement like:
"wdContext.currentMyColorElement().getMyColorValue();"
I get the value "Red" back instead of "R". If the user overrode the default and picked "Blue" from the drop down that statement would return "B". Is there a way to set the default "key" as well as the "text" value similar to the "put( key, text)" method that I used to populate the list in the first place?
Thanks in advance.