<?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 Service Catalog - Form Variables - set text field Read only on form in ServiceNow AI Platform forum</title>
    <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/service-catalog-form-variables-set-text-field-read-only-on-form/m-p/1062477#M18866</link>
    <description>&lt;P&gt;Hello - This may be a simple question but not finding answer on wiki - is there an easy way to make a text field Read Only on the form without a UI policy? so just add a default value to text field and set read only on the variable. &lt;/P&gt;&lt;P&gt;I am using an order guide to support requesting a server stack - each checked item = per environment configuration/qty so I want to set value for the environment to readonly because it is passed and kicks off an automation....prefer it to be visible but doesn't matter - that's more for my sanity to test. &amp;nbsp; They all share the same variable set for header and item specs but environment value would be fixed and specific to each item. &amp;nbsp; Would like to just set readonly on the attribute rather than create 9 UI policies. &amp;nbsp; Can you apply a UI policy at the order guide level so it applies to all items in the order? Going live in a couple of weeks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time!&lt;/P&gt;</description>
    <pubDate>Fri, 07 Aug 2015 00:15:18 GMT</pubDate>
    <dc:creator>aliciamiller</dc:creator>
    <dc:date>2015-08-07T00:15:18Z</dc:date>
    <item>
      <title>Service Catalog - Form Variables - set text field Read only on form</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/service-catalog-form-variables-set-text-field-read-only-on-form/m-p/1062477#M18866</link>
      <description>&lt;P&gt;Hello - This may be a simple question but not finding answer on wiki - is there an easy way to make a text field Read Only on the form without a UI policy? so just add a default value to text field and set read only on the variable. &lt;/P&gt;&lt;P&gt;I am using an order guide to support requesting a server stack - each checked item = per environment configuration/qty so I want to set value for the environment to readonly because it is passed and kicks off an automation....prefer it to be visible but doesn't matter - that's more for my sanity to test. &amp;nbsp; They all share the same variable set for header and item specs but environment value would be fixed and specific to each item. &amp;nbsp; Would like to just set readonly on the attribute rather than create 9 UI policies. &amp;nbsp; Can you apply a UI policy at the order guide level so it applies to all items in the order? Going live in a couple of weeks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2015 00:15:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/service-catalog-form-variables-set-text-field-read-only-on-form/m-p/1062477#M18866</guid>
      <dc:creator>aliciamiller</dc:creator>
      <dc:date>2015-08-07T00:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Service Catalog - Form Variables - set text field Read only on form</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/service-catalog-form-variables-set-text-field-read-only-on-form/m-p/1062478#M18867</link>
      <description>&lt;P&gt;Hi Alicia,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I don't think that's possible in service catalog variables. You could accomplish that in table fields but then you cannot even set the value of the field through a script, so it works in the form of a constant.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The best way is to do a UI policy and 9 UI policies are not that much anyway &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://www.servicenow.com/6.0.3.0/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;You could also set a catalog variable as readOnly through script with the following line:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;EM&gt;g_form.setReadOnly('catalog_variable_name',true);&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Berny&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Aug 2015 02:42:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/service-catalog-form-variables-set-text-field-read-only-on-form/m-p/1062478#M18867</guid>
      <dc:creator>bernyalvarado</dc:creator>
      <dc:date>2015-08-07T02:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Service Catalog - Form Variables - set text field Read only on form</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/service-catalog-form-variables-set-text-field-read-only-on-form/m-p/1062479#M18868</link>
      <description>&lt;P&gt;You can apply UI policies and client scripts to variable sets. &amp;nbsp; You may just need to add related lists to the variable set form (Configure &amp;gt; Related Lists). &amp;nbsp; That's probably your easiest option to set the fields read-only.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="related_lists.PNG"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/114527i6BCD47683F32A993/image-size/large?v=v2&amp;amp;px=999" role="button" title="related_lists.PNG" alt="related_lists.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 08 Aug 2015 04:15:47 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/service-catalog-form-variables-set-text-field-read-only-on-form/m-p/1062479#M18868</guid>
      <dc:creator>David OBrien</dc:creator>
      <dc:date>2015-08-08T04:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Service Catalog - Form Variables - set text field Read only on form</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/service-catalog-form-variables-set-text-field-read-only-on-form/m-p/1062480#M18869</link>
      <description>&lt;P&gt;Hi Alicia, this is not possible for Service Catalog variables. I would recommend you to create a onLoad UI policy, without condition and make that particular field 'read-only'. Please let me know if any queries you have.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Aug 2015 04:56:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/service-catalog-form-variables-set-text-field-read-only-on-form/m-p/1062480#M18869</guid>
      <dc:creator>sudharsanv36</dc:creator>
      <dc:date>2015-08-11T04:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Service Catalog - Form Variables - set text field Read only on form</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/service-catalog-form-variables-set-text-field-read-only-on-form/m-p/1062481#M18870</link>
      <description>&lt;P&gt;Hi &lt;A title="aliciamiller" __default_attr="37395" __jive_macro_name="user" class="jive-link-profile-small jive_macro jive_macro_user" data-id="37395" data-objecttype="3" data-orig-content="aliciamiller" data-renderedposition="10_25_85_16" data-type="person" href="https://www.servicenow.com/community?id=community_user_profile&amp;amp;user=24131e25db1c1fc09c9ffb651f9619b9"&gt;aliciamiller&lt;/A&gt;, do you feel that we can close this thread by marking one of the responses as correct?&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;Berny&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Nov 2015 06:31:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/service-catalog-form-variables-set-text-field-read-only-on-form/m-p/1062481#M18870</guid>
      <dc:creator>bernyalvarado</dc:creator>
      <dc:date>2015-11-17T06:31:53Z</dc:date>
    </item>
  </channel>
</rss>

