Hello,
I have two DateFields with startDate and endDate. How i can validate it in a way that you can not choose for endDate date before the startDate?
final DateField startDate = new DateField("Start date");
startDate.setRequired(true);
startDate.setValidationVisible(true);
startDate.setImmediate(true);
final DateField endDate = new DateField("End date");
endDate.setRequired(true);
endDate.setValidationVisible(true);
endDate.setImmediate(true);
This works fine but I do have a user form and there is Search button setup, validation only shows red into the End date field but it allow to search for it. Is there any way I can stop search option if the date is incorrect or end date is before begin date