<?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 make a field readonly on a form if a template is applied in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811498#M383277</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom reference field on a Change form, called Template. That field references System Definition-&amp;gt;Templates. If I select a template, then some fields are populated on the form.&lt;/P&gt;&lt;P&gt;This all works fine, however I'd like to achieve that as soon as a field is populated(due to the selection of the template) make it read-only, not editable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried several options(client scripts, business rule, ACL, etc.), but none of them working as expected, although I'm new to ServiceNow, so it could be I was not doing it the right way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those fields that are populated due to the template can also be read-only by default, however when I was unable to achieve that(tried using ACLs, but I've found that read-only fields were not populated when I selected a template).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to make sure that as soon as a template is selected, the values that is populated on the form are not editable. I want to achieve this dynamically(without Saving the form).&lt;/P&gt;&lt;P&gt;Could you please give me some guidance on how to achieve this?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2016 09:31:43 GMT</pubDate>
    <dc:creator>szollo</dc:creator>
    <dc:date>2016-04-12T09:31:43Z</dc:date>
    <item>
      <title>How to make a field readonly on a form if a template is applied</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811498#M383277</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom reference field on a Change form, called Template. That field references System Definition-&amp;gt;Templates. If I select a template, then some fields are populated on the form.&lt;/P&gt;&lt;P&gt;This all works fine, however I'd like to achieve that as soon as a field is populated(due to the selection of the template) make it read-only, not editable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried several options(client scripts, business rule, ACL, etc.), but none of them working as expected, although I'm new to ServiceNow, so it could be I was not doing it the right way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those fields that are populated due to the template can also be read-only by default, however when I was unable to achieve that(tried using ACLs, but I've found that read-only fields were not populated when I selected a template).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to make sure that as soon as a template is selected, the values that is populated on the form are not editable. I want to achieve this dynamically(without Saving the form).&lt;/P&gt;&lt;P&gt;Could you please give me some guidance on how to achieve this?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 09:31:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811498#M383277</guid>
      <dc:creator>szollo</dc:creator>
      <dc:date>2016-04-12T09:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field readonly on a form if a template is applied</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811499#M383278</link>
      <description>&lt;P&gt;In Geneva there is "Standard Change Catalog". It does pretty much what you asking for here. Perhaps that is your solution?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Btw. If you upgraded to Geneva this plugin isnt active by default.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Can read more about it here: &lt;A href="https://docs.servicenow.com/bundle/geneva-it-service-management/page/product/change_management/concept/c_StandardChangeCatalogPlugin.html" title="https://docs.servicenow.com/bundle/geneva-it-service-management/page/product/change_management/concept/c_StandardChangeCatalogPlugin.html"&gt;https://docs.servicenow.com/bundle/geneva-it-service-management/page/product/change_management/concept/c_StandardChangeCatalogPlugin.html&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Apr 2016 09:42:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811499#M383278</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2016-04-12T09:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field readonly on a form if a template is applied</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811500#M383279</link>
      <description>&lt;P&gt;Why dont you try UI Policy... that is the one you are making the fields visible make them read only also expecting that these are the fields which are being populated once you select the template. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Apr 2016 09:53:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811500#M383279</guid>
      <dc:creator>Rohit Sarkar1</dc:creator>
      <dc:date>2016-04-12T09:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field readonly on a form if a template is applied</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811501#M383280</link>
      <description>&lt;P&gt;Hi Gergely,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;you can achieve it using UI Policy.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;1. Go to UI policies in navigator.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;2.Create new UI policy.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;3. In that select table in which table it belongs to.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;4. Add short description.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;5. Give condition as : &amp;nbsp; "Template is not empty".&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;6.Save the form and then scroll down and in UI Policy actions --&amp;gt; add new&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;7. Select the "template" option and submit it.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Now check your requirement.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Comment back if you have any issues.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Hit Like/Helpful or correct based on the impact.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Apr 2016 10:21:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811501#M383280</guid>
      <dc:creator>abilash_017</dc:creator>
      <dc:date>2016-04-12T10:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field readonly on a form if a template is applied</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811502#M383281</link>
      <description>&lt;P&gt;Unfortunately that doesn't work, as the field becomes read-only prior to the field getting populated by the selected template. So basically I'm going to end up with an empty field that is read-only.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Apr 2016 20:29:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811502#M383281</guid>
      <dc:creator>szollo</dc:creator>
      <dc:date>2016-04-15T20:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field readonly on a form if a template is applied</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811503#M383282</link>
      <description>&lt;P&gt;Hi Abilash,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thank you for getting back to me!&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Unfortunately that doesn't work(I tried your suggested steps). Please see my response to Rohit Sarkar.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Gergely&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Apr 2016 20:31:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811503#M383282</guid>
      <dc:creator>szollo</dc:creator>
      <dc:date>2016-04-15T20:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field readonly on a form if a template is applied</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811504#M383283</link>
      <description>&lt;P&gt;Hi Goran,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;This is exactly what we need, but unfortunately - I forgot to mention - we are on Fuji, so this solution will not work for us.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Basically we would like to use Templates as Standard Changes, that's why the fields cannot be modified once the template is applied.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;While this option is interesting and new to me, I'm still trying to find a solution for our case. Are you aware of any alternative solution that could be used in this case?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Gergely&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Apr 2016 20:45:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811504#M383283</guid>
      <dc:creator>szollo</dc:creator>
      <dc:date>2016-04-15T20:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field readonly on a form if a template is applied</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811505#M383284</link>
      <description>&lt;P&gt;Right off my mind I would turn to ui polices. Not sure if you need to make 1 ui policy for each field or you can make only one with some fancy condition, haven't thought to so much on it. It's pretty much to choose from a few simple ones or one complicated one.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;But it should work if you have a UI policy with condition that if field template isn't empty and field b(which the template fills) isn't empty, then read only sets on field B.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Shouldn't that work?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;//Göran&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 16 Apr 2016 09:55:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811505#M383284</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2016-04-16T09:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field readonly on a form if a template is applied</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811506#M383285</link>
      <description>&lt;P&gt;Hi Goran,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thank you very much, that worked!&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Unfortunately this brought up an issue where making HTML field to read-only causing the field disappearing(keeping only the label and the +- chars to increase/decrease the size of the box), but that's a different issue.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thank you again!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Apr 2016 15:23:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811506#M383285</guid>
      <dc:creator>szollo</dc:creator>
      <dc:date>2016-04-19T15:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field readonly on a form if a template is applied</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811507#M383286</link>
      <description>&lt;P&gt;always fun to help and solve a problem &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;//Göran&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Apr 2016 20:40:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811507#M383286</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2016-04-19T20:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field readonly on a form if a template is applied</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811508#M383287</link>
      <description>&lt;P&gt;Hi Gergely,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Were you able to figure out how to make it as read-only? Can you share what you did to make it RO? Thanks&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I followed the steps to create a UI Policy and got lost in setting condition "Template is not empty". &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Aug 2016 17:07:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811508#M383287</guid>
      <dc:creator>jmcagod</dc:creator>
      <dc:date>2016-08-09T17:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field readonly on a form if a template is applied</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811509#M383288</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I've created the UI Policy on Change Request table and set the condition like the following:&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/42949iDF032E49423E2738/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;&lt;P&gt;After this in the UI Policy Actions I configured the required field read-only:&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/42947i5A6F820037F3E9B2/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;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The Template field is a custom Reference type field with the following settings:&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/42950i286F974AF07489EF/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;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Gergo&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Aug 2016 08:22:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-make-a-field-readonly-on-a-form-if-a-template-is-applied/m-p/811509#M383288</guid>
      <dc:creator>szollo</dc:creator>
      <dc:date>2016-08-10T08:22:49Z</dc:date>
    </item>
  </channel>
</rss>

