How to change label of a radio button?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
mdfaisalpapa
User
Posts: 84

How to change label of a radio button?

Post by mdfaisalpapa »

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?


arbei
User
Posts: 9292

Post by arbei »

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.


Post Reply