- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2022 04:32 AM
Hi All,
We have one field with the data type LIST and it is not referring to any table, instead I have created some choices for that.
Now I have a requirement to control the visibility of those choices based on some condition.
I tried the g_form.addOption n removeOption but it's not working.
Any way to achieve this..??
Note : The field type is LIST not Choice
Thanks ????
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2022 11:04 AM
Hi,
Thank you for marking my reply as Helpful.
If it also helped guide you Correctly, please also mark it as Correct.
Thanks and take care! 🙂
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2022 04:46 AM
Hi,
removeOption, etc. is only for select box fields. If your field is a list type, I believe you'll need to use a reference qualifier to hide those choices. Since it's not referencing a table, I'm unsure if that will work and you may need to create the choices as you did, then reference the sys_choice table and filter it to those choices, then filter it further depending on your need.
The "loophole" of what you did was to prevent creating a table to house the choices, but now that you need to filter them further, you'd want to now reference where those choices were made (because they live now on the sys_choice table).
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2022 11:04 AM
Hi,
Thank you for marking my reply as Helpful.
If it also helped guide you Correctly, please also mark it as Correct.
Thanks and take care! 🙂
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!