How to set a dropdown option
-
I want to be able to set a dropdown option using the js API. If my Dropdown has labels and values of ‘one’,1 ‘two’,2 ‘three’,3 etc I can read the selected option using
LoadedForms[0].GetFieldById(27).GetText();
So if ‘three’ was selected then the above function returns ‘three’. But how do I set a selected dropdown value based on the text, eg I want to set it to say ‘two’. I tried
LoadedForms[0].GetFieldById(27).SetText('two');
but this is not a supported function.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to set a dropdown option’ is closed to new replies.