<?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 restrict Date optionality using a UI policy in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2880464#M517852</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First time posting in this forum. I'm creating an SC Catalog Form and using the "Date" variable. I want to limit or restrict the date options to 1 month from "today's date" (date of the submission of the request). Meaning, I don't want a user to be able to select a date more than 1 month ahead as well as any past dates relative to "today's date" or the date the user is submitting the request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I accomplish this without using a script? I don't seem to have the option of using scripts with my current permissions on our platform.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2024 11:49:22 GMT</pubDate>
    <dc:creator>Cuber</dc:creator>
    <dc:date>2024-03-28T11:49:22Z</dc:date>
    <item>
      <title>How to restrict Date optionality using a UI policy</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2880464#M517852</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First time posting in this forum. I'm creating an SC Catalog Form and using the "Date" variable. I want to limit or restrict the date options to 1 month from "today's date" (date of the submission of the request). Meaning, I don't want a user to be able to select a date more than 1 month ahead as well as any past dates relative to "today's date" or the date the user is submitting the request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I accomplish this without using a script? I don't seem to have the option of using scripts with my current permissions on our platform.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 11:49:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2880464#M517852</guid>
      <dc:creator>Cuber</dc:creator>
      <dc:date>2024-03-28T11:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Date optionality using a UI policy</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2881133#M517881</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/672345"&gt;@Cuber&lt;/a&gt; you would need 2 UI policies&lt;/P&gt;&lt;P&gt;1. To check more than 30 days below condition needs to be placed&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarishKM_0-1711680470458.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/343322i3091DED2404A2788/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HarishKM_0-1711680470458.png" alt="HarishKM_0-1711680470458.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarishKM_1-1711680482167.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/343323iE65A92EE9253C4BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HarishKM_1-1711680482167.png" alt="HarishKM_1-1711680482167.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. To put error message if past date is selected&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarishKM_2-1711680523895.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/343324i3D30614719135B87/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HarishKM_2-1711680523895.png" alt="HarishKM_2-1711680523895.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarishKM_3-1711680535608.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/343325iBC7FC40989E1B195/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HarishKM_3-1711680535608.png" alt="HarishKM_3-1711680535608.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 02:49:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2881133#M517881</guid>
      <dc:creator>Harish KM</dc:creator>
      <dc:date>2024-03-29T02:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Date optionality using a UI policy</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2881676#M517928</link>
      <description>&lt;P&gt;Hi Harish,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm able to apply the conditions as you displayed in your screenshots, however, when I go to the form, I'm still able to select dates past 1 month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I don't have the option to add scripts unfortunately. (see screenshot)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise. Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 13:30:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2881676#M517928</guid>
      <dc:creator>Cuber</dc:creator>
      <dc:date>2024-03-29T13:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Date optionality using a UI policy</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2882823#M517973</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/672345"&gt;@Cuber&lt;/a&gt; check whether the UI policy is in default view? if yes click on advanced view. Also u do have admin role ?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 01:18:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2882823#M517973</guid>
      <dc:creator>Harish KM</dc:creator>
      <dc:date>2024-04-01T01:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Date optionality using a UI policy</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2884844#M518128</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/399714"&gt;@Harish KM&lt;/a&gt;&amp;nbsp;I don't have the option for advanced view. I only see Default or sys_popup. I have limited ability on the backend. I'm not sure if you'd consider this "admin" or not. When I load the UI policy, I see the "script" tab for a split second. Once the page is fully loaded, it disappears.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 13:26:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2884844#M518128</guid>
      <dc:creator>Cuber</dc:creator>
      <dc:date>2024-04-02T13:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Date optionality using a UI policy</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2885526#M518164</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/672345"&gt;@Cuber&lt;/a&gt; what role do you have in servicenow? only admins can write script&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 01:35:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2885526#M518164</guid>
      <dc:creator>Harish KM</dc:creator>
      <dc:date>2024-04-03T01:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Date optionality using a UI policy</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2885595#M518172</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/672345"&gt;@Cuber&lt;/a&gt;&amp;nbsp; please check below link&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.servicenow.com/community/developer-articles/date-validations-client-scripts/ta-p/2298860" target="_blank"&gt;https://www.servicenow.com/community/developer-articles/date-validations-client-scripts/ta-p/2298860&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 04:28:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2885595#M518172</guid>
      <dc:creator>Harish Bainsla</dc:creator>
      <dc:date>2024-04-03T04:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Date optionality using a UI policy</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2886030#M518217</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/399714"&gt;@Harish KM&lt;/a&gt;&amp;nbsp;I'm not an admin. It's a kind of Catalog Manager. So, because I'm not able to write scripts, I was looking for a solution I could employ using only UI policies. I did mention this in my original post.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 09:32:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2886030#M518217</guid>
      <dc:creator>Cuber</dc:creator>
      <dc:date>2024-04-03T09:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Date optionality using a UI policy</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2887122#M518302</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/672345"&gt;@Cuber&lt;/a&gt; I have verified in PDI OOB instance&lt;/P&gt;&lt;P&gt;if you have catalog_manager role, you can write UI Policy script if your the owner of catalog.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarishKM_2-1712193945020.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/344993i9C213E49DF340940/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HarishKM_2-1712193945020.png" alt="HarishKM_2-1712193945020.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarishKM_0-1712193859979.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/344989iE5B316B19250446B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HarishKM_0-1712193859979.png" alt="HarishKM_0-1712193859979.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarishKM_1-1712193874678.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/344990i18B8FA8277C54645/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HarishKM_1-1712193874678.png" alt="HarishKM_1-1712193874678.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 01:25:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2887122#M518302</guid>
      <dc:creator>Harish KM</dc:creator>
      <dc:date>2024-04-04T01:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Date optionality using a UI policy</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2887567#M518332</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/399714"&gt;@Harish KM&lt;/a&gt;&amp;nbsp;I do have Catalog Manager role, however, I'm not an owner. I don't have the script tab to be able to write scripts. Please advise. thank you&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 08:24:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2887567#M518332</guid>
      <dc:creator>Cuber</dc:creator>
      <dc:date>2024-04-04T08:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Date optionality using a UI policy</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2887630#M518337</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/491704"&gt;@Harish Bainsla&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response. Unfortunately I don't have the option to write/input scripts with my current role.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 09:11:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2887630#M518337</guid>
      <dc:creator>Cuber</dc:creator>
      <dc:date>2024-04-04T09:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Date optionality using a UI policy</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2888535#M518393</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/672345"&gt;@Cuber&lt;/a&gt; when I checked in OOB Instance as a catalog manager i can see the UI Policy script but i cannot select catalog item because there&amp;nbsp; is a reference qualifier applied on UI policy catalog item field that only catalog owner can select the catalog item now this is OOB instance,&lt;/P&gt;&lt;P&gt;In your instance your able to select catalog item but script section is not visible so I assume there is some customisation done, so I would advise to check with your developer team,&lt;/P&gt;&lt;P&gt;in short as a catalog manager you should be able to see script section .If it is not showing then there is some customisation implemented in your organisation.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 00:39:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2888535#M518393</guid>
      <dc:creator>Harish KM</dc:creator>
      <dc:date>2024-04-05T00:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Date optionality using a UI policy</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2888614#M518399</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/672345"&gt;@Cuber&lt;/a&gt;&amp;nbsp; please ask them to give role to you and use code which is given in the link which i share&lt;/P&gt;&lt;P&gt;and if my answer helps you please accept solutions and mark helpful&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 04:30:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2888614#M518399</guid>
      <dc:creator>Harish Bainsla</dc:creator>
      <dc:date>2024-04-05T04:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Date optionality using a UI policy</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2890826#M518591</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/491704"&gt;@Harish Bainsla&lt;/a&gt;, Our corporation has strict rules about who gets full administrative rights on this platform. So this the main reason I was looking to create the policies without using a script.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 10:01:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-restrict-date-optionality-using-a-ui-policy/m-p/2890826#M518591</guid>
      <dc:creator>Cuber</dc:creator>
      <dc:date>2024-04-08T10:01:27Z</dc:date>
    </item>
  </channel>
</rss>

