<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to manage choices in glide_list type field in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3262649#M1201963</link>
    <description>&lt;P&gt;Hey Sunil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did some testing on my own and I was able to get this to work (in contrast to my previous reply). This is a little experimental (and guesswork), so your millage may very. &lt;U&gt;Try this in your&amp;nbsp;&lt;STRONG&gt;onChange&lt;/STRONG&gt; client script:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;g_form.removeOption('choice.incident.&amp;lt;variable_name&amp;gt;', '&amp;lt;choice_value&amp;gt;');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replace&amp;nbsp;&lt;EM&gt;&amp;lt;variable_name&amp;gt;&amp;nbsp;&lt;/EM&gt;with the&amp;nbsp;&lt;STRONG&gt;Column Name&amp;nbsp;&lt;/STRONG&gt;of your variable, and&amp;nbsp;&lt;EM&gt;&amp;lt;choice_value&amp;gt;&amp;nbsp;&lt;/EM&gt;with your choice&amp;nbsp;&lt;STRONG&gt;Value&lt;/STRONG&gt;. If you are on a different table, try replacing&amp;nbsp;&lt;EM&gt;incident&amp;nbsp;&lt;/EM&gt;with your table name (or inspect the HTML to see what is listed for that element).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I inspected the HTML element for the Glide List field and saw that&amp;nbsp;&lt;EM&gt;choice.incident&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;was a prefix of the field name. Running&amp;nbsp;&lt;EM&gt;g_form.RemoveOption()&amp;nbsp;&lt;/EM&gt;in my browser console successfully removed the option. See attached for examples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Remember that you will need to use&amp;nbsp;&lt;EM&gt;g_form.addOption()&amp;nbsp;&lt;/EM&gt;to re-add any options you removed client-side if needed.&lt;BR /&gt;&lt;BR /&gt;Hope this helps! Let me know if you need an example of a client script.&lt;/P&gt;</description>
    <pubDate>Wed, 14 May 2025 03:26:04 GMT</pubDate>
    <dc:creator>Zach N</dc:creator>
    <dc:date>2025-05-14T03:26:04Z</dc:date>
    <item>
      <title>How to manage choices in glide_list type field</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3259281#M1201152</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a field of type 'glide_list' as users want to select multiple values in it and have added choices to this field. However, I am unable to add or remove options on this field based on other field value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 13:15:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3259281#M1201152</guid>
      <dc:creator>SunilKumar_P</dc:creator>
      <dc:date>2025-05-09T13:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage choices in glide_list type field</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3259306#M1201156</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/250630"&gt;@SunilKumar_P&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since that glide list is referring to sys_choice, those are sysIds, so you will have to add reference qualifier to filter&lt;/P&gt;
&lt;P&gt;add or remove option won't work there.&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 13:31:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3259306#M1201156</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-05-09T13:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage choices in glide_list type field</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3259448#M1201185</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966"&gt;@Ankur Bawiskar&lt;/a&gt;&amp;nbsp;- Thanks for your response. There is no reference as you can see below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SunilKumar_P_0-1746806272522.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/441143iB8B536E1A9B56C32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SunilKumar_P_0-1746806272522.png" alt="SunilKumar_P_0-1746806272522.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, as this field type usually deals with sys_ids, let me try and get back to you.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 15:58:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3259448#M1201185</guid>
      <dc:creator>SunilKumar_P</dc:creator>
      <dc:date>2025-05-09T15:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage choices in glide_list type field</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3259459#M1201187</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/250630"&gt;@SunilKumar_P&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;did you try what value you get when you use alert?&lt;/P&gt;
&lt;P&gt;I haven't used glide list with choice&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 16:06:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3259459#M1201187</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-05-09T16:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage choices in glide_list type field</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3259518#M1201200</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;SPAN&gt;Sunil!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT: Please see my reply to Sunil for how to remove options from a&amp;nbsp;Glide List. Other information in this post can be used for alternatives.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;Unfortunately to my knowledge a&amp;nbsp;&lt;STRONG&gt;List&amp;nbsp;&lt;/STRONG&gt;can't be manipulated in the same way a&amp;nbsp;&lt;STRONG&gt;Choice List&amp;nbsp;&lt;/STRONG&gt;can be (options can't be added or removed from the selection, though they can be removed from the field once they are selected).&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You could reference another table and use the&amp;nbsp;&lt;STRONG&gt;Advanced Reference&lt;/STRONG&gt; &lt;STRONG&gt;Qualifier&lt;/STRONG&gt; to make choices dynamic. Using JavaScript you can use fields on the form. For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;javascript&amp;amp;colon; "company=" + current.company&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could also use a&amp;nbsp;&lt;STRONG&gt;Dependent Field&amp;nbsp;&lt;/STRONG&gt;to drive the choices.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can reference another table, you might also be able to dynamically change the reference qualifier using the &lt;STRONG&gt;GlideList API.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another option might be creating different fields with different options and hiding / showing them depending on your needs. This is likely to get a little messy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Beyond that, if you&amp;nbsp;&lt;EM&gt;really&amp;nbsp;&lt;/EM&gt;need to limit the choices using the default Choice table, you could create a custom GlideAjax script include that dynamically marks options as active / inactive, but this is going to be resource intensive and slow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 17:56:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3259518#M1201200</guid>
      <dc:creator>Zach N</dc:creator>
      <dc:date>2025-05-14T17:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage choices in glide_list type field</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3260920#M1201535</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966"&gt;@Ankur Bawiskar&lt;/a&gt;&amp;nbsp;, tried with sys_id and other possibilities as well but no luck. I'm not sure if there is a way to handle choices in glide_list.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 16:10:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3260920#M1201535</guid>
      <dc:creator>SunilKumar_P</dc:creator>
      <dc:date>2025-05-12T16:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage choices in glide_list type field</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3260922#M1201536</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/304020"&gt;@Zach N&lt;/a&gt;, Thanks for your suggestions. I have tried to reference the sys_choice table as it contains the choice records but the table itself is not shown in the list. I could see 'Choice Set' table but it will not help in this scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am exploring the other possibilities, will update if I get any working solution.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 16:13:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3260922#M1201536</guid>
      <dc:creator>SunilKumar_P</dc:creator>
      <dc:date>2025-05-12T16:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage choices in glide_list type field</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3262649#M1201963</link>
      <description>&lt;P&gt;Hey Sunil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did some testing on my own and I was able to get this to work (in contrast to my previous reply). This is a little experimental (and guesswork), so your millage may very. &lt;U&gt;Try this in your&amp;nbsp;&lt;STRONG&gt;onChange&lt;/STRONG&gt; client script:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;g_form.removeOption('choice.incident.&amp;lt;variable_name&amp;gt;', '&amp;lt;choice_value&amp;gt;');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replace&amp;nbsp;&lt;EM&gt;&amp;lt;variable_name&amp;gt;&amp;nbsp;&lt;/EM&gt;with the&amp;nbsp;&lt;STRONG&gt;Column Name&amp;nbsp;&lt;/STRONG&gt;of your variable, and&amp;nbsp;&lt;EM&gt;&amp;lt;choice_value&amp;gt;&amp;nbsp;&lt;/EM&gt;with your choice&amp;nbsp;&lt;STRONG&gt;Value&lt;/STRONG&gt;. If you are on a different table, try replacing&amp;nbsp;&lt;EM&gt;incident&amp;nbsp;&lt;/EM&gt;with your table name (or inspect the HTML to see what is listed for that element).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I inspected the HTML element for the Glide List field and saw that&amp;nbsp;&lt;EM&gt;choice.incident&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;was a prefix of the field name. Running&amp;nbsp;&lt;EM&gt;g_form.RemoveOption()&amp;nbsp;&lt;/EM&gt;in my browser console successfully removed the option. See attached for examples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Remember that you will need to use&amp;nbsp;&lt;EM&gt;g_form.addOption()&amp;nbsp;&lt;/EM&gt;to re-add any options you removed client-side if needed.&lt;BR /&gt;&lt;BR /&gt;Hope this helps! Let me know if you need an example of a client script.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 03:26:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3262649#M1201963</guid>
      <dc:creator>Zach N</dc:creator>
      <dc:date>2025-05-14T03:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage choices in glide_list type field</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3263287#M1202139</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/304020"&gt;@Zach N&lt;/a&gt;&amp;nbsp;- Thanks for helping me here. Your suggestion did work. I really appreciate you taking time to help me on this.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 11:28:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3263287#M1202139</guid>
      <dc:creator>SunilKumar_P</dc:creator>
      <dc:date>2025-05-14T11:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage choices in glide_list type field</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3263840#M1202287</link>
      <description>&lt;P&gt;Of course! Glad it worked!&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 17:57:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3263840#M1202287</guid>
      <dc:creator>Zach N</dc:creator>
      <dc:date>2025-05-14T17:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage choices in glide_list type field</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3291736#M1209444</link>
      <description>&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the Dependent field method. (see Attached Picture)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Dictionary Entry for the field you want to filter the choices:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Make sure you are in "Advanced" View&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;List Field type is selected&lt;/LI&gt;&lt;LI&gt;Label and Name of the Field you want filter the choices&lt;/LI&gt;&lt;LI&gt;Go to "Dependent Field" tab&lt;/LI&gt;&lt;LI&gt;Check the "Use Dependent Field" Check box&lt;/LI&gt;&lt;LI&gt;Select the field you want to use as your filter value.&lt;/LI&gt;&lt;LI&gt;Save Form&lt;/LI&gt;&lt;LI&gt;Go to Choices Tab&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;In the Dependent Value Column, put the Value from the other field that you want each choice to filtered by.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Notes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;No Reference Qualifier is needed with this method.&lt;/LI&gt;&lt;LI&gt;I have yet to make it work with another glide list field, but I am still trying with Ref Qual and script includes or Client Scripts.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I hope this helps!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 16:49:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3291736#M1209444</guid>
      <dc:creator>Stephen F</dc:creator>
      <dc:date>2025-06-17T16:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage choices in glide_list type field</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3555519#M1257304</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/304020"&gt;@Zach N&lt;/a&gt;, thanks for the wonderful solution at normal record form. Do you know any solution the same for Service Portal ? It looks like it doesn't work the same like that&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2026 11:31:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-manage-choices-in-glide-list-type-field/m-p/3555519#M1257304</guid>
      <dc:creator>sieusaopolo15</dc:creator>
      <dc:date>2026-06-08T11:31:00Z</dc:date>
    </item>
  </channel>
</rss>

