- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 03:42 AM
Hi Team,
Need to restrict choice fields in close code field, when particular type (CI Outcome) is selected in on change_task
form,
i have written on change client script, its not working as expected,
On change, Field Type close code, selected
all the choice fields is showing ,
how to achieve this.
Regards,
Abhilasha G T
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 03:52 AM
is it going inside that IF?
are you comparing the correct value?
what debugging have you done so far and what's your analysis and findings?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 03:56 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 06:22 AM
@Abhilasha G T You need to write an else condition and remove the additional choices. You can use g_form.removeOption method to remove the choices.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 06:22 AM
@Abhilasha G T You need to write an else condition and remove the additional choices. You can use g_form.removeOption method to remove the choices.