Hello, I wanted to ask if there is a way to have someone only be able to select a date that is today or a later date but not past dates. Is this possible? Thank you in advance.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @GRodLegacy ,
If your requirement is to restrict the author to not select a past date then it could be achieved with the minDate property with value as "today". Or you can achieve it using Jquery:
$(function() {
$( "#datepicker" ).datepicker({ minDate: 0});
});
Regards,
SK
@GRodLegacy What kind of form are you developing? Is it PDF or Adaptive form.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
@GRodLegacy Use this on date picker:
var utc = new Date().toJSON().slice(0,10);
if(this.value<utc){
alert("do not select previous dates");
this.value=null;
guideBridge.setFocus(this);
}
Hi @GRodLegacy ,
If your requirement is to restrict the author to not select a past date then it could be achieved with the minDate property with value as "today". Or you can achieve it using Jquery:
$(function() {
$( "#datepicker" ).datepicker({ minDate: 0});
});
Regards,
SK
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies