<?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>topic How to restrict Date fields to allow selection for future dates alone? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-date-fields-to-allow-selection-for-future-dates/m-p/36468#M15385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using APS 1.6.4, In the Form fields when I use a Date field- there is a Min and Max Value available in the Advanced tab of the Date field in the Form editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I restrict&amp;nbsp;selection&amp;nbsp;to be future dates? Does the above fields help me in this regard?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated... Thank you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2017 21:04:05 GMT</pubDate>
    <dc:creator>paiyyavj13</dc:creator>
    <dc:date>2017-11-02T21:04:05Z</dc:date>
    <item>
      <title>How to restrict Date fields to allow selection for future dates alone?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-date-fields-to-allow-selection-for-future-dates/m-p/36468#M15385</link>
      <description>Hi,I am using APS 1.6.4, In the Form fields when I use a Date field- there is a Min and Max Value available in the Advanced tab of the Date field in the Form editor.How can I restrict&amp;nbsp;selection&amp;nbsp;to be future dates? Does the above fields help me in this regard?Any suggestions would be appreciated... T</description>
      <pubDate>Thu, 02 Nov 2017 21:04:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-date-fields-to-allow-selection-for-future-dates/m-p/36468#M15385</guid>
      <dc:creator>paiyyavj13</dc:creator>
      <dc:date>2017-11-02T21:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Date fields to allow selection for future dates alone?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-date-fields-to-allow-selection-for-future-dates/m-p/36469#M15386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using javaScript you can do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create two date field then in javascript write&lt;/P&gt;&lt;P&gt;var today = new Date();&lt;BR /&gt;var dd = today.getDate();&lt;BR /&gt;var mm = today.getMonth()+1; //January is 0!&lt;BR /&gt;var yyyy = today.getFullYear();&lt;BR /&gt;var todaysdate=dd+"-"+mm+"-"+yyyy;&lt;BR /&gt;form.fields[0].fields[1][0].maxValue=todaysdate;&lt;BR /&gt;form.fields[0].fields[2][0].minValue=todaysdate;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 07:03:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-date-fields-to-allow-selection-for-future-dates/m-p/36469#M15386</guid>
      <dc:creator>amruta_w</dc:creator>
      <dc:date>2017-11-06T07:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Date fields to allow selection for future dates alone?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-date-fields-to-allow-selection-for-future-dates/m-p/36470#M15387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="168384" __jive_macro_name="user" _jive_internal="true" data-id="168384" data-objecttype="3" data-type="person" href="https://community.alfresco.com/people/amruta.w" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;‌ Hi- I need to get the date field from the form object- In the example given by you we assume that the first field in the form is the date field- I was checking the api's but could not find anything useful-&lt;/P&gt;&lt;P&gt;For e.g.: if the form field id was "golivedate"- how would I get it from the form object? could you guide me? Thanks in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 21:36:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-date-fields-to-allow-selection-for-future-dates/m-p/36470#M15387</guid>
      <dc:creator>paiyyavj13</dc:creator>
      <dc:date>2017-11-28T21:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Date fields to allow selection for future dates alone?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-date-fields-to-allow-selection-for-future-dates/m-p/36471#M15388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;you can changes this according to your requirement like &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;form.fields[0].fields[1][0].maxValue=todaysdate;&amp;nbsp; to&lt;STRONG&gt;&amp;nbsp;form.fields[0].fields[2][1].maxValue=todaysdate&lt;/STRONG&gt;;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;It is just an example.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2017 05:59:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-date-fields-to-allow-selection-for-future-dates/m-p/36471#M15388</guid>
      <dc:creator>amruta_w</dc:creator>
      <dc:date>2017-11-30T05:59:32Z</dc:date>
    </item>
  </channel>
</rss>

