I have a date picker control inside a section control. The section control is hidden when another drop down list control selection equals a certain value. I have "cannot be blank" checked on the date picker control
The problem arises when the section control is hidden (and not needed). The form won't submit because the date picker control is blank which it will be when it's hidden and thus not required. Other than giving it a default date which would deem the data validation moot, is it possible to override this data validation if the control isn't needed (is hidden)?
One thing I've tried that isn't working is to remove "cannot be blank" check mark, then create a rule so that when the section is supposed to be hidden, set date picker value to a date that is acceptable. I did this by setting value of the date picker control to the value of another date picker control from the form. Data validation still stops it because the resulting value is blank. I've verifed the other date picker control value is NOT blank. Both date picker data types are set to "Date and time (date Time)" and Format is default: Display the date like this: *3/14/2001, Display the time like this: (Do not display time).
Rule example:
Condition: dropdownlist = "Hide datepicker1 control"
Action: Set a field's value: datepicker1 = datepicker2
Datepicker 2 is a required field and while it will be blank when datepicker1 value it called, it will be filled by the time the form submit button is clicked. It's a timing thing, isn't it?