<?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 When we use current. and when g_form ? in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/when-we-use-current-and-when-g-form/m-p/835572#M407351</link>
    <description>&lt;P&gt;we can access the form variable using both "current" and "g_form" but what is the specific area of both?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Jan 2019 04:43:20 GMT</pubDate>
    <dc:creator>Vinay Nimbalka1</dc:creator>
    <dc:date>2019-01-27T04:43:20Z</dc:date>
    <item>
      <title>When we use current. and when g_form ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/when-we-use-current-and-when-g-form/m-p/835572#M407351</link>
      <description>&lt;P&gt;we can access the form variable using both "current" and "g_form" but what is the specific area of both?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jan 2019 04:43:20 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/when-we-use-current-and-when-g-form/m-p/835572#M407351</guid>
      <dc:creator>Vinay Nimbalka1</dc:creator>
      <dc:date>2019-01-27T04:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: When we use current. and when g_form ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/when-we-use-current-and-when-g-form/m-p/835573#M407352</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;
&lt;P&gt;Current will be used in server side scripts like workflow, business rules and g_form will be used in client scripts.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jan 2019 05:25:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/when-we-use-current-and-when-g-form/m-p/835573#M407352</guid>
      <dc:creator>Gowtham29</dc:creator>
      <dc:date>2019-01-27T05:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: When we use current. and when g_form ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/when-we-use-current-and-when-g-form/m-p/835574#M407353</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;current&amp;nbsp;&lt;/STRONG&gt;object is used to refer the currently opened record on a business rule, workflows&amp;nbsp;and&amp;nbsp;in some other server-side scripts.&lt;/P&gt;
&lt;P class="p"&gt;The current object is automatically instantiated from the GlideRecord class. The current object's properties are all the fields for a record and all the GlideRecord methods. The property values are the values as they exist in the runtime environment.&lt;/P&gt;
&lt;P&gt;It's a reference to the record you are in. Example. An Incident record.&lt;/P&gt;
&lt;P&gt;On the&amp;nbsp;other hand, &lt;STRONG&gt;g_form&lt;/STRONG&gt; is an object of GlideForm class, it is used to access the currently opened form data.&lt;/P&gt;
&lt;P class="p"&gt;The GlideForm client-side API provides methods for managing form and form fields, such as,&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;Retrieve a field value on a form&lt;/LI&gt;&lt;LI&gt;Hide a field&lt;/LI&gt;&lt;LI&gt;Make a field read-only&lt;/LI&gt;&lt;LI&gt;Write a message on a form or a field&lt;/LI&gt;&lt;LI&gt;Add options to a choice list&lt;/LI&gt;&lt;LI&gt;Remove options from a choice list&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;For more information refer below links.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.servicenow.com/app.do#!/lp/servicenow_administrator/app_store_learnv2_scripting_london_the_glideform_g_form_class?v=london" rel="nofollow"&gt;The GlideForm (g_form) Class&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.servicenow.com/app.do#!/lp/servicenow_administrator/app_store_learnv2_scripting_london_business_rule_scripts?v=london" rel="nofollow"&gt;current and previous&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Mark If Correct/Helpful.&lt;/P&gt;
&lt;P class="p"&gt;Regards,&lt;BR /&gt;Ajay&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jan 2019 05:36:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/when-we-use-current-and-when-g-form/m-p/835574#M407353</guid>
      <dc:creator>Ajaykumar1</dc:creator>
      <dc:date>2019-01-27T05:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: When we use current. and when g_form ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/when-we-use-current-and-when-g-form/m-p/835575#M407354</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P class="shortdesc"&gt;The GlideForm API provides methods to customize forms. GlideForm.js is the JavaScript class containing the methods. The global object g_form is used to access GlideForm methods. GlideForm methods are only used on the client.&lt;/P&gt;
&lt;P class="p"&gt;These methods are used to make custom changes to the form view of records. All validation of examples was done using Client Scripts.&lt;/P&gt;
&lt;P class="p"&gt;Some of these methods can also be used in other client scripts (such as Catalog Client Scripts or Wizard Client Scripts), but must first be tested to determine whether they will work as expected.&lt;/P&gt;
&lt;P class="p"&gt;Following link provide more info and its methods.&lt;/P&gt;
&lt;P class="p"&gt;&lt;STRONG&gt;https://developer.servicenow.com/app.do#!/training/article/app_store_learnv2_scripting_london_client_side_scripting/app_store_learnv2_scripting_london_the_glideform_g_form_class?v=london&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="p"&gt;you would use the current.variables.variablename and anything in requested item table by itself you would use current.variablename&lt;/P&gt;
&lt;P class="p"&gt;Variables in current are the columns that are defined in the&amp;nbsp;&lt;SPAN class="ph filepath"&gt;dictionary.xml&lt;/SPAN&gt;&amp;nbsp;file that support the database record. There is no way at runtime to add variables to the current record.&lt;/P&gt;
&lt;P class="p"&gt;following thread provide info about current and previous&lt;/P&gt;
&lt;P class="p"&gt;&lt;STRONG&gt;https://developer.servicenow.com/app.do#!/lp/new_to_servicenow/app_store_learnv2_scripting_istanbul_business_rule_scripts?v=london&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="p"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p"&gt;Mark it helpful/correct if it helps you.&lt;/P&gt;
&lt;P class="p"&gt;Regards,&lt;/P&gt;
&lt;P class="p"&gt;Tejal&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jan 2019 06:08:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/when-we-use-current-and-when-g-form/m-p/835575#M407354</guid>
      <dc:creator>Tejal Zete</dc:creator>
      <dc:date>2019-01-27T06:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: When we use current. and when g_form ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/when-we-use-current-and-when-g-form/m-p/835576#M407355</link>
      <description>&lt;P&gt;Hi Gowtham,&lt;/P&gt;
&lt;P&gt;If your doubt is clear, please mark the appropriate answer as correct and remove the thread from the unanswered queue.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Ajay&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 05:22:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/when-we-use-current-and-when-g-form/m-p/835576#M407355</guid>
      <dc:creator>Ajaykumar1</dc:creator>
      <dc:date>2019-01-29T05:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: When we use current. and when g_form ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/when-we-use-current-and-when-g-form/m-p/835577#M407356</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If your issue is resolved, please mark the appropriate answer as correct and remove the thread from the unanswered queue.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Ajay&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 05:23:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/when-we-use-current-and-when-g-form/m-p/835577#M407356</guid>
      <dc:creator>Ajaykumar1</dc:creator>
      <dc:date>2019-01-29T05:23:11Z</dc:date>
    </item>
  </channel>
</rss>

