I have a submission form I am working on for employees to submit holiday. It has a "Start_Date" and an "End_Date" field selected by calendar.
What I would like to happen is when they pick a start date the entry is checked and an error message submitted for any of the following criteria
The Start Date entered is:
1. Before todays date
2. Before the most recent 1st March
3. After the next 1st March
If it is impossible or extremely hard to get it to recognise the last or the next March I am happy to update annually if I have to with a fixed date "01/03/2016" for instance and "01/03/2017".
I am very happy for the code to be run on submit and then the error to be displayed.
I can do very basic code but I am at a loss with numbers 2 and 3 in particular!
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
Ben07080703
Hi,
I have a submission form I am working on for employees to submit holiday. It has a "Start_Date" and an "End_Date" field selected by calendar.
What I would like to happen is when they pick a start date the entry is checked and an error message submitted for any of the following criteria
The Start Date entered is:
1. Before todays date
2. Before the most recent 1st March
3. After the next 1st March
If it is impossible or extremely hard to get it to recognise the last or the next March I am happy to update annually if I have to with a fixed date "01/03/2016" for instance and "01/03/2017".
I am very happy for the code to be run on submit and then the error to be displayed.
I can do very basic code but I am at a loss with numbers 2 and 3 in particular!
Any help would be appreciated.
Thanks
Link to comment
Share on other sites
2 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.