<?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: Dependent Dropdown In Service Catalaog Form in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/dependent-dropdown-in-service-catalaog-form/m-p/444541#M16320</link>
    <description>&lt;P&gt;you can call the script include on your 2nd field as advanced reference qualifier. &lt;A href="http://wiki.servicenow.com/index.php?title=Reference_Qualifiers#Advanced_Reference_Qualifier_Example" title="http://wiki.servicenow.com/index.php?title=Reference_Qualifiers#Advanced_Reference_Qualifier_Example"&gt;Reference Qualifiers - ServiceNow Wiki&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;sample code, please modify per your need.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var GetListValue = Class.create();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;GetListValue.prototype = {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; initialize: function() {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; },&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; getList : function()&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var ids = [];&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var gr = new GlideRecord('Your table name');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var sys_id = this.getParameter();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; gr.addQuery('&amp;lt;sys_id variable&amp;gt;', sys_id);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; gr.query();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; while(gr.next())&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; ids.push(gr.sys_id.toString());&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; return 'sys_idIN' + ids;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; },&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; type: 'GetListValue'&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;};&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;also, i think you can create a datal ookup between between these two fields.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 23 May 2017 07:59:16 GMT</pubDate>
    <dc:creator>Shishir Srivast</dc:creator>
    <dc:date>2017-05-23T07:59:16Z</dc:date>
    <item>
      <title>Dependent Dropdown In Service Catalaog Form</title>
      <link>https://www.servicenow.com/community/itsm-forum/dependent-dropdown-in-service-catalaog-form/m-p/444537#M16316</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; I am new to service now and I have a requirement.&lt;/P&gt;&lt;P&gt;I have two dropdown fields in our catalog form. in first dropdown there are two values and values in 2nd dropdown field is coming from a custom table.&lt;/P&gt;&lt;P&gt;The actual requirement is to filter the 2nd dropdown based on first dropdown selection. In our custom table there is an entry of the first dropdown value in all record. So we can filter based on that. But I dont know the process to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to do the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sonu&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 18:55:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/dependent-dropdown-in-service-catalaog-form/m-p/444537#M16316</guid>
      <dc:creator>sonu123</dc:creator>
      <dc:date>2017-05-22T18:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dependent Dropdown In Service Catalaog Form</title>
      <link>https://www.servicenow.com/community/itsm-forum/dependent-dropdown-in-service-catalaog-form/m-p/444538#M16317</link>
      <description>&lt;P&gt;Please refer below post which will help you to implement your requirement.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A href="http://wiki.servicenow.com/index.php?title=Adding_Dependent_Variables#gsc.tab=0" title="http://wiki.servicenow.com/index.php?title=Adding_Dependent_Variables#gsc.tab=0"&gt;http://wiki.servicenow.com/index.php?title=Adding_Dependent_Variables#gsc.tab=0&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 May 2017 21:37:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/dependent-dropdown-in-service-catalaog-form/m-p/444538#M16317</guid>
      <dc:creator>sachin_namjoshi</dc:creator>
      <dc:date>2017-05-22T21:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dependent Dropdown In Service Catalaog Form</title>
      <link>https://www.servicenow.com/community/itsm-forum/dependent-dropdown-in-service-catalaog-form/m-p/444539#M16318</link>
      <description>&lt;P&gt;Hi Sonu,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;You should be writing an on change client script on the first drop down variable and the dependent values can be populated on the 2nd dropdown. If the values are stored on a different table, then you need to make a server call from your client script or if values are hard coded, you can just add these lines after modifying logic according to your requirement.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if(newValue == 'a'){&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;g_form.addOption('seond_variable_name', 'b', 'B');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;g_form.addOption('seond_variable_name', 'c', 'C');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Please Hit Like, Helpful or Correct depending on the impact of response&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 May 2017 06:48:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/dependent-dropdown-in-service-catalaog-form/m-p/444539#M16318</guid>
      <dc:creator>Alikutty A</dc:creator>
      <dc:date>2017-05-23T06:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dependent Dropdown In Service Catalaog Form</title>
      <link>https://www.servicenow.com/community/itsm-forum/dependent-dropdown-in-service-catalaog-form/m-p/444540#M16319</link>
      <description>&lt;P&gt;Thanks Alikutty and Najoshi for you reply&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;@ Alikutty - I have the values stored at server side. I have also written an script include to filter the dropdown. But it is filtering only at the loading time. But I need to refresh the 2nd dropdown every time when I change my first dropdown. This is not happening. How to achive the functionality when I change the value in my first dropdown.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Vikash&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 May 2017 07:36:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/dependent-dropdown-in-service-catalaog-form/m-p/444540#M16319</guid>
      <dc:creator>sonu123</dc:creator>
      <dc:date>2017-05-23T07:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dependent Dropdown In Service Catalaog Form</title>
      <link>https://www.servicenow.com/community/itsm-forum/dependent-dropdown-in-service-catalaog-form/m-p/444541#M16320</link>
      <description>&lt;P&gt;you can call the script include on your 2nd field as advanced reference qualifier. &lt;A href="http://wiki.servicenow.com/index.php?title=Reference_Qualifiers#Advanced_Reference_Qualifier_Example" title="http://wiki.servicenow.com/index.php?title=Reference_Qualifiers#Advanced_Reference_Qualifier_Example"&gt;Reference Qualifiers - ServiceNow Wiki&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;sample code, please modify per your need.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var GetListValue = Class.create();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;GetListValue.prototype = {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; initialize: function() {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; },&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; getList : function()&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var ids = [];&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var gr = new GlideRecord('Your table name');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var sys_id = this.getParameter();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; gr.addQuery('&amp;lt;sys_id variable&amp;gt;', sys_id);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; gr.query();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; while(gr.next())&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; ids.push(gr.sys_id.toString());&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; return 'sys_idIN' + ids;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; },&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; type: 'GetListValue'&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;};&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;also, i think you can create a datal ookup between between these two fields.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 May 2017 07:59:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/dependent-dropdown-in-service-catalaog-form/m-p/444541#M16320</guid>
      <dc:creator>Shishir Srivast</dc:creator>
      <dc:date>2017-05-23T07:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dependent Dropdown In Service Catalaog Form</title>
      <link>https://www.servicenow.com/community/itsm-forum/dependent-dropdown-in-service-catalaog-form/m-p/444542#M16321</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Please take a look at Article below:&lt;/P&gt;
&lt;P&gt;1. dependent on single table&lt;BR /&gt;2. dependent on two tables using referene&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;&lt;STRONG&gt;[SOLVED]: - Dependent variable on Catalog item using Lookup Select Box&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;https://community.servicenow.com/community?id=community_article&amp;amp;sys_id=1ce7dceedb5914101cd8a345ca961952&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If my answer solved your issue, please mark my answer as &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Correct &amp;amp; &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;Helpful based on the Impact.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;BR /&gt;Regards,&lt;BR /&gt;Kailash.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 07:02:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/dependent-dropdown-in-service-catalaog-form/m-p/444542#M16321</guid>
      <dc:creator>Kailash Bhange</dc:creator>
      <dc:date>2020-06-12T07:02:51Z</dc:date>
    </item>
  </channel>
</rss>

