removeOption to a Selectbox variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2024 11:25 PM
Hi,
I have a select box type variable where the options are from a reference table. The following removeOption doesn't works for me.
Is it possible to remove the option by passing the corresponding sys_id.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2024 12:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2024 12:14 AM
Hi @Abhijeet_Pawar ,
The variable comes from a variable set. We need to hide the options for a particular record producer.
Thanks!
Ramkumar.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2024 12:06 AM
Hi @Ramkumar Thanga ,
Unfortunately, you have to go by the value not sysid as per the systax:
g_form.removeOption('var_name', 'value');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2024 12:17 AM
Hi @Community Alums
The variable comes from a variable set. We need to hide the options for a particular record producer.
As the options are records from a specific table. The value points the sys_id of the record.
Thanks!
Ramkumar.