I have two date field in the custom module. when I am creating the record for the module it taking to-date field value less than from-date field value. I want to restrict to-date field. Never goes less than a from-date field. please help me how can I do this?
Anyone has answer?
I have a similar problem. Is there a way to restrict the range of possible dates in a date field?
I don’t think there is an easy answer to this one.
What I will do is to add some custom javascript to the view to do a custom validation everytime there is a change on the field to make sure the selected date is in the allow range. If not, then present a message and reset the field: (Check this sample)
The other option is to create a workflow or a before save logic hook to check the field and do something with the record if valid/not valid