- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2024 04:39 AM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2024 04:49 AM - edited ‎03-04-2024 04:50 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2024 05:17 AM
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