<?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 How to use &amp;quot;g_form.getParameter('sysparm_nameofstack');&amp;quot; in SysAdmin forum</title>
    <link>https://www.servicenow.com/community/sysadmin-forum/how-to-use-quot-g-form-getparameter-sysparm-nameofstack-quot/m-p/3118967#M16109</link>
    <description>&lt;P&gt;The script contains the following statement:&lt;/P&gt;&lt;P&gt;"g_form.getParameter('sysparm_nameofstack');"&lt;/P&gt;&lt;P&gt;What does "g_form.getParameter" get?&lt;BR /&gt;Does it get parameters from the URL?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2024 01:36:17 GMT</pubDate>
    <dc:creator>bonsai</dc:creator>
    <dc:date>2024-12-04T01:36:17Z</dc:date>
    <item>
      <title>How to use "g_form.getParameter('sysparm_nameofstack');"</title>
      <link>https://www.servicenow.com/community/sysadmin-forum/how-to-use-quot-g-form-getparameter-sysparm-nameofstack-quot/m-p/3118967#M16109</link>
      <description>&lt;P&gt;The script contains the following statement:&lt;/P&gt;&lt;P&gt;"g_form.getParameter('sysparm_nameofstack');"&lt;/P&gt;&lt;P&gt;What does "g_form.getParameter" get?&lt;BR /&gt;Does it get parameters from the URL?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 01:36:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/sysadmin-forum/how-to-use-quot-g-form-getparameter-sysparm-nameofstack-quot/m-p/3118967#M16109</guid>
      <dc:creator>bonsai</dc:creator>
      <dc:date>2024-12-04T01:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "g_form.getParameter('sysparm_nameofstack');"</title>
      <link>https://www.servicenow.com/community/sysadmin-forum/how-to-use-quot-g-form-getparameter-sysparm-nameofstack-quot/m-p/3118991#M16110</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/398642"&gt;@bonsai&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;In ServiceNow, g_form.getParameter() is used in client-side scripts (such as Client Scripts or UI Actions) to retrieve parameters from the URL of the current page.&amp;nbsp;These parameters are often passed to the form as part of the URL query string, and g_form.getParameter() allows you to access their values directly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: if the you are trying to get a reference field then using g_form.getParameter() you can get the reference value's sys_id.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please mark this answer as "&lt;STRONG&gt;Helpful&lt;/STRONG&gt;" and "&lt;STRONG&gt;Correct&lt;/STRONG&gt;" if you feel this answer helped you in anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;K. Sai Charan&lt;/P&gt;&lt;P&gt;Sr. ServiceNow Developer&amp;nbsp;&lt;/P&gt;&lt;P&gt;Deloitte India&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 02:11:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/sysadmin-forum/how-to-use-quot-g-form-getparameter-sysparm-nameofstack-quot/m-p/3118991#M16110</guid>
      <dc:creator>Sai_Charan_K</dc:creator>
      <dc:date>2024-12-04T02:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "g_form.getParameter('sysparm_nameofstack');"</title>
      <link>https://www.servicenow.com/community/sysadmin-forum/how-to-use-quot-g-form-getparameter-sysparm-nameofstack-quot/m-p/3119000#M16112</link>
      <description>&lt;P&gt;Hello &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/398642"&gt;@bonsai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are correct! g_form.getParameter() is used in client scripts to retrieve query parameters from the URL. This is often done to build conditions or extract specific values from the URL for use in the form logic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;If this helped please hit like and mark it as an accepted solution&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&amp;nbsp;&lt;/P&gt;&lt;P&gt;Juhi Poddar&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 02:57:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/sysadmin-forum/how-to-use-quot-g-form-getparameter-sysparm-nameofstack-quot/m-p/3119000#M16112</guid>
      <dc:creator>Juhi Poddar</dc:creator>
      <dc:date>2024-12-04T02:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "g_form.getParameter('sysparm_nameofstack');"</title>
      <link>https://www.servicenow.com/community/sysadmin-forum/how-to-use-quot-g-form-getparameter-sysparm-nameofstack-quot/m-p/3566916#M23523</link>
      <description>&lt;P&gt;Unluckily this won't work in Workspace. You don't have "getParameter" available in client scripts, running in workspace.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2026 07:09:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/sysadmin-forum/how-to-use-quot-g-form-getparameter-sysparm-nameofstack-quot/m-p/3566916#M23523</guid>
      <dc:creator>Michael_Martin</dc:creator>
      <dc:date>2026-07-01T07:09:13Z</dc:date>
    </item>
  </channel>
</rss>

