I have a radio button with two options. I want to change the label of one of the radio button during execution. how can this be done?
How to change label of a radio button?
-
- User
- Posts: 9292
You can update the caption of the options with the language setFieldPhrase() method.
For example:
Language()->setFieldPhrase("<Table>","<Field>","<id of the option>","<new caption>");
You can get the ID of the option by referring the <lang id>.xml which is generated under the "phplang" folder.
Another method is to use Option Template, see "Lookup Table" -> "Option Template" in the help file.