- 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 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:55 AM
Please mark your earlier questions as answered by marking appropriate response as correct to close the thread as members have invested their time and efforts responding to them.
This helps future members.
Date and time configuration in change form
i need to lookup only active users in a particular view in incident record.
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 05:58 AM
Hi Sandeep,
Thank you i didnt notice the Field Type.
field name is Type = CI Outcome,
now its showing correct choices , as i expect like below,
but if we select the other Type= Implementation,
all choices is showing , it should not happen, what ever the the choices i created newly its should not apper in the other Type like in implementation, Review
how to do that