Jacob
Jacob

Reputation: 14731

Date Picker Validations

I have the following demo

What I would like to achieve here is when the Edit button is clicked

1) Date picker should have dates which are greater than End Date if Proj End Date is is empty

2) Date picker should have dates which are greater than Proj End Date if Proj End Date is is not empty

How can I do this?

Upvotes: 0

Views: 95

Answers (1)

Jayesh Goyani
Jayesh Goyani

Reputation: 11154

Please try this

Update 1:-

I have implemented below function in above code:

  1. If projEndDate field have no value then its minimum value should be greater (or equal to) 'EndDate' field.

  2. If projEndDate field have value then its minimum value should greater (or equal to) projEndDate field.

Let me know if any concern.

Upvotes: 1

Related Questions