Setting Date Column to Null and save in DB

QuestionsSetting Date Column to Null and save in DB
Deepesh Kumar R asked 7 years ago

Hello Sir,

The Problem is that, Now I have one column for Follow Up Date.
Now when we add date, it checks for validation whether user entered previous date or not. It's working.But what I want is that, when we try to remove the date, it is showing the validation. When we try to remove, it shouldnot check for validation and null value should be saved in DB.

Please help me. I am stuck with this.

Pastebin Link:
https://pastebin.com/etMj8j8P

Hopefully
Deepesh

1 Answers
Abu Ghufran answered 7 years ago

At top of your JS function, you can use something like:

if (value=='')
return [true,""];

Your Answer

11 + 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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?