DateTime Picker min and max to restrict date selection
Hello,
I would like to restrict date within 3 days(Include current days) using DateTime Field with custom in spform.User cannot be restrict the Next Day(Future Time).
Eg. Today is 6/12/2019.User can be select 4/12/2019 or 5/12/2019 or 6/12/2019 .But they cannot select and the next day or the previous of these days must be disable.
So,Please help me how can I do it ?
I would like to restrict date within 3 days(Include current days) using DateTime Field with custom in spform.User cannot be restrict the Next Day(Future Time).
Eg. Today is 6/12/2019.User can be select 4/12/2019 or 5/12/2019 or 6/12/2019 .But they cannot select and the next day or the previous of these days must be disable.
So,Please help me how can I do it ?
- Attachments
-
- pp.png (29.01 KiB) Viewed 3110 times
Hello Hnin Yu.
Please find the example of how to disable dates in the calendar in this post:
viewtopic.php?f=1&t=3151
Please find the example of how to disable dates in the calendar in this post:
viewtopic.php?f=1&t=3151
Hnin Yu,
Manual input will not be saved if it is not in the allowed range of dates.
But you can also disable the field itself with the following code:
Manual input will not be saved if it is not in the allowed range of dates.
But you can also disable the field itself with the following code:
Code: Select all
function disableDtae() {
if (fd.field('Date').value()) {
fd.field('Date').readonly(true);
}
}
fd.field('Date').change(disableDtae);
-
- Information
-
Who is online
Users browsing this forum: No registered users and 10 guests