
Hi,
In a two option field (boolean), how to get the text Value in UCI interface, there is function called
formContext.getAttribute(arg).getText(), in UCI interface doesn't work in classic it works, is there a way or should I do the conversion like
var text= formContext("new_towoptionvalue").getValue()?"black":"color";
Notes
- The field is in the form
- Works getText() on classic but UCI does not
Thanks, regards.
Hello,
getText would work for optionset and multiselectoptionset attributes. For booleans you will have to use conversion code.