Date Restriction

QuestionsDate Restriction
Giovanni Luca Bonelli asked 5 years ago

Hi Abu!
I want to prevent new rows adding with date field earlier than yesterday.
Can You explain "how to"?

I try with:

$col["formatoptions"] = array("opts" => array("minDate"=> -1));

Datepicker show only available dates but I have 2 problem:

1- Datepicker doesn't work when I select one of available dates
2- I can manually insert a date without restriction

Thank You.

2 Answers
Abu Ghufran answered 5 years ago

1) Unable to regenerate this issue. It works as expected.
2) Set $col["editoptions"]["readonly"]="readonly"; …. it will make field non-type-able and only work with selection.

Giovanni Luca Bonelli answered 4 years ago

I don't know why, but so rewritten, It works!


Your Answer

3 + 9 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!