Clear options and add options not working ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2024 06:37 AM
I wrote a onchange client script , if I select India it should show me 3 options if I select Philippines it should show me 4 options, while changing the location field I can see the change like for India its showing 3 options and for Philippines its showing 4 options , but the issue is once I save the ticket for India its showing all the 4 options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2024 06:40 AM
You'll need a similar script onLoad to only show the choices for the value of Category after the record is saved / when it is loaded.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2024 06:46 AM - edited ‎08-19-2024 06:50 AM
Regards
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2024 06:54 AM
Hi @Paul Curwen I have tried to create a similar onload client script but its not working after saving the record I am able to see whistle blower for india location
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2024 07:15 AM
You didn't clearOptions in this script as you did onChange. Add alerts to confirm the value of loc. If you clearoptions you don't need any removeoption lines, but if you don't then you don't need any addoption lines - only removeoptions.