Skip to Content
avatar image
Former Member

Date and time restriction


I have dragged and dropped the Date/Time field from the Library into the adobe forms. When I go to the PDF Preview mode I can able to see the date for the n number of years. But my req. is to display only 2 months from the current month.

Can you help me out?.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 04, 2010 at 08:34 AM

    Do you mean you would like to restrict the dates available in the Calendar (date time opened)? I think that is not possible (to limit the dates avilable). Your only shot is to let the user pick any date and then validate the value. If the date would be outisde your from and to dates, you would delete the value and display a pop-up with the error message.

    Regards Otto

    Add comment
    10|10000 characters needed characters exceeded

    • Thanks for your response. I have done the validation, If the user select more than 60 days from the current date I raised the popup message. Just I took the month from the current date and added 2 on it and checked the value. If it exceeds I have populated the value. Is this the way to do the validation.

      If that works for you, it is fine with me. I cannot see a problem:))

      And also one more thing If the user selects some wrong value we raised the popup message But value is sitting on the text box. How to clear the value.. Can we use "clearItems" or any other syntax. I tried with clearItems It doesnt work.

      you must only address the field (for example using this, parent etc.) to delete correctly and then use field.rawValue = "";

      Do you remember we have discussed the issue about helping others? What is your record? Can you show some contributions you have made to pay back the effort of people helping you? Just wonder if you have listened to me or just ignored me...

      regards Otto