<?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 Re: Catalog UI Policy - end date cannot be before start date in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043401#M700327</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried an alternative with the onchange client script on end_date.&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;function onChange(control, oldValue, newValue, isLoading) {


  if (isLoading || newValue == '') {


  return;


  }

 var dFormat = g_user_date_format;

var end = getDateFromFormat(g_form.getValue('end_date'),dFormat);
var sDate=getDateFromFormat(g_form.getValue('start_date'),dFormat);

if(end&amp;lt;sDate)


  {


  alert(getMessage("End date should not be before Start date"));


  g_form.setValue('end_date','');



  }


  


 



  }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please mark Correct&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;/helpful???? if applicable, thanks!!&lt;/P&gt;
&lt;P&gt;Aman&lt;/P&gt;</description>
    <pubDate>Fri, 30 Apr 2021 05:33:27 GMT</pubDate>
    <dc:creator>Aman Singh_</dc:creator>
    <dc:date>2021-04-30T05:33:27Z</dc:date>
    <item>
      <title>Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043395#M700321</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I need help. I am trying to use Catalog UI Policy to set the condition on the end date field. What I need is the end date cannot be before start date.&lt;/P&gt;
&lt;P&gt;The field is "date" not "date/time"&lt;/P&gt;
&lt;P&gt;I applied the condition as below for "end_date_of_visit" is more than 0 days after "starting date of visit" and use the client script BUT it doesn't work. The end date of visit field still can fill in the date before starting date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure that for this case, it's wrong on the condition I set or from the client script ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&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/67319i8F014E26CCC639B0/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;P&gt;&amp;nbsp;&lt;/P&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/67320iC782625396558A72/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;</description>
      <pubDate>Fri, 30 Apr 2021 04:27:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043395#M700321</guid>
      <dc:creator>Bird Petcharayu</dc:creator>
      <dc:date>2021-04-30T04:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043396#M700322</link>
      <description>&lt;P&gt;I don't think getMessage will work in your script.&lt;/P&gt;
&lt;P&gt;Comment line 2, and check&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 04:46:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043396#M700322</guid>
      <dc:creator>AnirudhKumar</dc:creator>
      <dc:date>2021-04-30T04:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043397#M700323</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Here you can use client script and script include as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;onChange of "End Date" field.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use GlideAjax and Script include for this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For Example : If i want to check "Start date should not be greater than end date" if yes then show alert or any message "do not submit" and if not then it will show "submit it".&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Client script will be like:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;var ga = new GlideAjax('scriptinclude_name');&lt;BR /&gt;ga.adddParam('sysparm_name',function_name);&lt;BR /&gt;ga.addParam('sysparm_sysid',sysID);&lt;BR /&gt;ga.addParam('sysParm_newValue'newValue);&lt;BR /&gt;ga.getXML(callbackfunction);&lt;/P&gt;
&lt;P&gt;function callbackfunction(response)&lt;BR /&gt;{&lt;BR /&gt;var answer = response.responseXML.documentElement.getAttribute("answer");&lt;BR /&gt;if(answer=='do not submit")&lt;BR /&gt;{&lt;BR /&gt;alert("enter start date smaller than end date");&lt;BR /&gt;callback(false);&lt;BR /&gt;}&lt;BR /&gt;else if(answer=="submit it")&lt;BR /&gt;{&lt;BR /&gt;var confirmation=confirm("Are you sure want to change start date?");&lt;BR /&gt;callback(true);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Script Include:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;sunction_name function()&lt;BR /&gt;{&lt;BR /&gt;var newDate = this.getParameter('sysParm_newValue');&lt;BR /&gt;var gr=new GlideRecord('incident');&lt;BR /&gt;ge.addQuery('sys_id',thiis.getParameter('sysparm_sysid'));&lt;BR /&gt;gr.query();&lt;BR /&gt;if(gr.next())&lt;BR /&gt;{&lt;BR /&gt;if(newValue&amp;gt;gr.u_end_date)&lt;BR /&gt;{&lt;BR /&gt;return "do not submit";&lt;BR /&gt;}&lt;BR /&gt;else if(newVallue&amp;lt;=gr.u_end_date)&lt;BR /&gt;{&lt;BR /&gt;return "submit it";&lt;BR /&gt;}&lt;BR /&gt;}};&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try to do same with your condition.&lt;/P&gt;
&lt;P&gt;If it is helpful then please don't forget to mark it as helpful or correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Sanika Gaikwad&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 05:11:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043397#M700323</guid>
      <dc:creator>Sanika Subhash</dc:creator>
      <dc:date>2021-04-30T05:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043398#M700324</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;did you just hard-coded the message in the showErrorBox&lt;/P&gt;
&lt;P&gt;I think the condition looks good.&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 05:18:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043398#M700324</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2021-04-30T05:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043399#M700325</link>
      <description>&lt;P&gt;I modified script to be like this but still no error box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;function onCondition() {&lt;BR /&gt; g_form.showErrorBox('end_date_of_visit',"End date of visit can't be before Starting date of visit.",'error');&lt;BR /&gt; return;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 05:31:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043399#M700325</guid>
      <dc:creator>Bird Petcharayu</dc:creator>
      <dc:date>2021-04-30T05:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043400#M700326</link>
      <description>&lt;P&gt;&lt;SN-MENTION class="sn-mention" table="live_profile" sysid="9e1a4d991bc6e09038739979b04bcbd2"&gt;@Bird Petcharayutporn&lt;/SN-MENTION&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can also use onSubmit Catalog Client Script&lt;/P&gt;
&lt;P&gt;Applies to Catalog Item&lt;/P&gt;
&lt;P&gt;UI Type - ALL&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;function onSubmit(){
	
	var start = new Date(g_form.getValue('start_date_of_visit')).getTime();
	var end = new Date(g_form.getValue('end_date_of_visit')).getTime();
	if(end &amp;lt; start){
		getMessage("End date should not be the day before the Start date", function(msg){
			g_form.showErrorBox('end_date_of_visit', msg);
			g_form.clearValue('end_date_of_visit');
		});
	}
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 05:32:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043400#M700326</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2021-04-30T05:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043401#M700327</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried an alternative with the onchange client script on end_date.&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;function onChange(control, oldValue, newValue, isLoading) {


  if (isLoading || newValue == '') {


  return;


  }

 var dFormat = g_user_date_format;

var end = getDateFromFormat(g_form.getValue('end_date'),dFormat);
var sDate=getDateFromFormat(g_form.getValue('start_date'),dFormat);

if(end&amp;lt;sDate)


  {


  alert(getMessage("End date should not be before Start date"));


  g_form.setValue('end_date','');



  }


  


 



  }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please mark Correct&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;/helpful???? if applicable, thanks!!&lt;/P&gt;
&lt;P&gt;Aman&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 05:33:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043401#M700327</guid>
      <dc:creator>Aman Singh_</dc:creator>
      <dc:date>2021-04-30T05:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043402#M700328</link>
      <description>&lt;P&gt;Please check the script I shared just now&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 05:34:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043402#M700328</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2021-04-30T05:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043403#M700329</link>
      <description>&lt;P&gt;Thanks for marking the response as correct, please close all your threads by marking the appropriate response as correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Aman&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 06:23:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043403#M700329</guid>
      <dc:creator>Aman Singh_</dc:creator>
      <dc:date>2021-04-30T06:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043404#M700330</link>
      <description>&lt;P&gt;Thanks, it's workable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please help me one more ? I need start date cannot be before today.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 06:26:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043404#M700330</guid>
      <dc:creator>Bird Petcharayu</dc:creator>
      <dc:date>2021-04-30T06:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043405#M700331</link>
      <description>&lt;P&gt;Sure, but its better to raise a separate question, and close this thread since original question has been answered. This will now confuse the future readers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you understand!!&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Aman&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 06:30:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043405#M700331</guid>
      <dc:creator>Aman Singh_</dc:creator>
      <dc:date>2021-04-30T06:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043406#M700332</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you can re-use the same script by writing onChange on Start date?&lt;/P&gt;
&lt;P&gt;update as this with just message change&lt;/P&gt;
&lt;P&gt;function onChange(control, oldValue, newValue, isLoading) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (isLoading || newValue == '') {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;return;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;var dFormat = g_user_date_format;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;var end = getDateFromFormat(g_form.getValue('end_date'),dFormat);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;var sDate = getDateFromFormat(g_form.getValue('start_date'),dFormat);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(end &amp;lt; sDate)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;alert(getMessage("Start date should not be after End date"));&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;g_form.setValue('end_date','');&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;I would recommend using onSubmit instead of 2 onChange client script&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 06:30:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043406#M700332</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2021-04-30T06:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043407#M700333</link>
      <description>&lt;P&gt;Ankur please don't mess up the thread!!&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;AMAN&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 06:34:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043407#M700333</guid>
      <dc:creator>Aman Singh_</dc:creator>
      <dc:date>2021-04-30T06:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043408#M700334</link>
      <description>&lt;P&gt;I don't think separate question is required as the follow up question relates to the same original question about the validation ..!!&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 06:38:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043408#M700334</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2021-04-30T06:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043409#M700335</link>
      <description>&lt;P&gt;You can use the no-code approach to validate start date should not be before today&lt;/P&gt;
&lt;P&gt;Create a UI policy as&amp;nbsp;&lt;/P&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/67315i479DF15C5C79F51B/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;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/67318i4F9E573D34D70E43/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;</description>
      <pubDate>Fri, 30 Apr 2021 06:40:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043409#M700335</guid>
      <dc:creator>Aman Singh_</dc:creator>
      <dc:date>2021-04-30T06:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043410#M700336</link>
      <description>&lt;P&gt;Appreciate, it's workable.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 07:21:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043410#M700336</guid>
      <dc:creator>Bird Petcharayu</dc:creator>
      <dc:date>2021-04-30T07:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043411#M700337</link>
      <description>&lt;P&gt;Glad to help!!,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please mark the appropriate answer as correct and close the thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Aman&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 07:27:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043411#M700337</guid>
      <dc:creator>Aman Singh_</dc:creator>
      <dc:date>2021-04-30T07:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043412#M700338</link>
      <description>&lt;P&gt;Found 1 thing that maybe tricky. it seems still be able to avoid UI policy if enter the end date first and start date later. It's allowed to input.&lt;/P&gt;
&lt;P&gt;Do we have a script to validate the form ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&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/67316i708B2AF184D045E3/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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 07:40:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043412#M700338</guid>
      <dc:creator>Bird Petcharayu</dc:creator>
      <dc:date>2021-04-30T07:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043413#M700339</link>
      <description>&lt;P&gt;&lt;SN-MENTION class="sn-mention" table="live_profile" sysid="9e1a4d991bc6e09038739979b04bcbd2"&gt;@Bird Petcharayutporn&lt;/SN-MENTION&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As already mentioned and for better code maintenance you can use single onSubmit client script instead of 2 onChange client scripts.&lt;/P&gt;
&lt;P&gt;I have already shared the script.&lt;/P&gt;
&lt;P&gt;Did you get a chance to check on that?&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 07:44:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043413#M700339</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2021-04-30T07:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog UI Policy - end date cannot be before start date</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043414#M700340</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update the client script as&lt;/P&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/67317iAEFB931DA3125D4E/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;</description>
      <pubDate>Fri, 30 Apr 2021 08:01:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-ui-policy-end-date-cannot-be-before-start-date/m-p/2043414#M700340</guid>
      <dc:creator>Aman Singh_</dc:creator>
      <dc:date>2021-04-30T08:01:41Z</dc:date>
    </item>
  </channel>
</rss>

