How to add choices at once to a choice field

Alon Grod
Tera Expert

Hi,

I have on change client script that remove some options from a choice field if some condition is met. How can i put back all options at once if the conidition is not met instead of typing 35 lines of g_form.addOption?

1 ACCEPTED SOLUTION

Anurag Tripathi
Mega Patron
Mega Patron

Hi Alon,

 

Unfortunately there is no option to do that unless the form is reloaded. If you remove the choices individually you will need to add them back individually as well.

-Anurag

View solution in original post

5 REPLIES 5

Mark Manders
Mega Patron

Use a UI policy. It has the 'reverse if false' functionality.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark