- Thu Oct 26, 2017 5:58 pm
#795987
Good morning,
In my form there are two fields: "Daytime" and "Textbox", I would like to validation if booking time > current time +48 hours.
For example, if today is 27/10/17 8am, and an user select 28/10/17 8am which is within 48 hours, then it will return false and stop user to select this date and time.
I know the datetime field can also select time but many of my users think it's better to have a separate textbox to enter time.
Any ideas or example to achieve this validation?
I'm using web-entry form, so only js may work.
Thanks in advance, please see my attached screen shot.
Yuan
In my form there are two fields: "Daytime" and "Textbox", I would like to validation if booking time > current time +48 hours.
For example, if today is 27/10/17 8am, and an user select 28/10/17 8am which is within 48 hours, then it will return false and stop user to select this date and time.
I know the datetime field can also select time but many of my users think it's better to have a separate textbox to enter time.
Any ideas or example to achieve this validation?
I'm using web-entry form, so only js may work.
Thanks in advance, please see my attached screen shot.
Yuan