remove option not working on catalog client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2023 02:54 PM
I am trying to use same client script which is working on the desktop/platform . I am trying to remove options based on date range . For example : I have a request type with 5 options and I have requirement where I have to show only 2 choices under request type from November - March . I tried onload client script for desktop where I passed date range as json and used gs_form.removeOption(‘request_type’, ,’bonus_form’);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2023 08:52 PM
Hi @Nani365
the syntax for removeOption in client script is g_form. removeOption('variablename','choicelistvalue');
In your question you have used gs_form, which is wrong syntax
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2023 04:02 AM
My bad. Typo error used the same g_form. It didn’t work .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2023 05:45 AM
here is the catalog client script below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2023 04:18 AM