It will have two dates: a start date and end date, both selected from a calendar.
The start date is compulsory.
The end date is not compulsory.
When the user inputs the start date, on clicking out of the field, I need the form to check if the date is both greater to or equal to 25 April 2016, AND less than or equal to 01 May 2016.
If it is incorrect, I need a message to be displayed indicating the error, and stopping the user from moving on.
If the user decides to input an end date, on clicking out of the field, I need the form to check if the date is both greater to or equal to the start date, AND less than or equal to 01 May 2016.
If it is incorrect, I need a message to be displayed indicating the error, and stopping the user from moving on.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
logistics
Hello all,
I am in the middle of creating a submission form.
It will have two dates: a start date and end date, both selected from a calendar.
The start date is compulsory.
The end date is not compulsory.
When the user inputs the start date, on clicking out of the field, I need the form to check if the date is both greater to or equal to 25 April 2016, AND less than or equal to 01 May 2016.
If it is incorrect, I need a message to be displayed indicating the error, and stopping the user from moving on.
If the user decides to input an end date, on clicking out of the field, I need the form to check if the date is both greater to or equal to the start date, AND less than or equal to 01 May 2016.
If it is incorrect, I need a message to be displayed indicating the error, and stopping the user from moving on.
How can I achieve this?
Thanks in advance,
Julien
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.