<?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 Make a field to true by default in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662552#M319478</link>
    <description>&lt;P&gt;I created an Active field with True/False type. I have given the default Value as true in Dictionary as well. But on the form, I do not see the Active as true i.e., Active check-box is not true. &lt;/P&gt;&lt;P&gt;I really appreciate for your valuable answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;KP&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2016 14:47:27 GMT</pubDate>
    <dc:creator>kpj</dc:creator>
    <dc:date>2016-03-21T14:47:27Z</dc:date>
    <item>
      <title>Make a field to true by default</title>
      <link>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662552#M319478</link>
      <description>&lt;P&gt;I created an Active field with True/False type. I have given the default Value as true in Dictionary as well. But on the form, I do not see the Active as true i.e., Active check-box is not true. &lt;/P&gt;&lt;P&gt;I really appreciate for your valuable answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;KP&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 14:47:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662552#M319478</guid>
      <dc:creator>kpj</dc:creator>
      <dc:date>2016-03-21T14:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Make a field to true by default</title>
      <link>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662553#M319479</link>
      <description>&lt;P&gt;KP,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Either check the Business Rule or Client Script for a start...search the field for that table...there could be an inherit script somewhere,,,please let me know if this helps...Cheers, Dor&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Mar 2016 14:53:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662553#M319479</guid>
      <dc:creator>salvadormar</dc:creator>
      <dc:date>2016-03-21T14:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Make a field to true by default</title>
      <link>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662554#M319480</link>
      <description>&lt;P&gt;If you are setting the default value to a boolean true (no quotes around it) then it should be working. I just verified it in my dev instance. If you just created the field then it won't set it for pre-existing records, only records created after the default was defined.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Mar 2016 14:54:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662554#M319480</guid>
      <dc:creator>rbeeman</dc:creator>
      <dc:date>2016-03-21T14:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Make a field to true by default</title>
      <link>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662555#M319481</link>
      <description>&lt;P&gt;Jack,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Here are some screenshots on Geneva with this working:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot_032116_105236_AM.jpg"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/197256i99411022FD60817C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_032116_105236_AM.jpg" alt="Screenshot_032116_105236_AM.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;This is a new table I created:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot_032116_105410_AM.jpg"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/197257iAC262DD704B31E7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_032116_105410_AM.jpg" alt="Screenshot_032116_105410_AM.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Just setting the default value to &lt;STRONG&gt;true&lt;/STRONG&gt; works. &amp;nbsp; Do you have any Business Rules or UI Policies overriding the default value?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Mar 2016 14:55:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662555#M319481</guid>
      <dc:creator>reedwowens</dc:creator>
      <dc:date>2016-03-21T14:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Make a field to true by default</title>
      <link>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662556#M319482</link>
      <description>&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The records already present before adding default value of active to true will not reflect their active value as true.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Create new record to this table . All new records will be defaulted to active true.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Mihir&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Mar 2016 14:59:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662556#M319482</guid>
      <dc:creator>Mihir Mohanta</dc:creator>
      <dc:date>2016-03-21T14:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Make a field to true by default</title>
      <link>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662557#M319483</link>
      <description>&lt;P&gt;Thank you All for quick response. I do not have any Business Rules or Client Script running on this form.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Robert - Yes, I have pre-existing records and these records are also need to be set True.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Just to be Specific on my problem: I have pre-existing records on a Table and I want all those records to be set as true&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Mar 2016 15:00:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662557#M319483</guid>
      <dc:creator>kpj</dc:creator>
      <dc:date>2016-03-21T15:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Make a field to true by default</title>
      <link>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662558#M319484</link>
      <description>&lt;P&gt;Hi Mihir,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I have 1000's of pre-existing records. Is it possible to make them true as well.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;KP&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Mar 2016 15:01:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662558#M319484</guid>
      <dc:creator>kpj</dc:creator>
      <dc:date>2016-03-21T15:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Make a field to true by default</title>
      <link>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662559#M319485</link>
      <description>&lt;P&gt;Yes Jack,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;You need to run a back ground script and set all record active true.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Mihir&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Mar 2016 15:03:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662559#M319485</guid>
      <dc:creator>Mihir Mohanta</dc:creator>
      <dc:date>2016-03-21T15:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Make a field to true by default</title>
      <link>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662560#M319486</link>
      <description>&lt;P&gt;You could right click on any column header of a list view of the table and "Update All". If you only check that box, that will be the only change to all of the records.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/197259i6430C2CC20AFC3A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Mar 2016 15:03:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662560#M319486</guid>
      <dc:creator>rbeeman</dc:creator>
      <dc:date>2016-03-21T15:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Make a field to true by default</title>
      <link>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662561#M319487</link>
      <description>&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;You can write a &amp;nbsp; client script : SNOW - Active True&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;function onLoad() {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; //Type appropriate comment here, and begin script below&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_form.setValue('Active','true');&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;&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;Mark if it is helpful or correct, feedback is appreciated&lt;/SPAN&gt;&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;&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Mar 2016 15:35:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/make-a-field-to-true-by-default/m-p/1662561#M319487</guid>
      <dc:creator>shristy2</dc:creator>
      <dc:date>2016-03-21T15:35:09Z</dc:date>
    </item>
  </channel>
</rss>

