SmartClient Version: v13.1p_2025-02-07/AllModules Development Only (built 2025-02-07)
Hello, I'm trying out the MiniDateRangeItem, but I'm unsure about its validation behaviour.
1. If I select a valid range and call validate() on the form, the validation fails with the message "must be a date".
2. If I call validate() on the form item, it returns true for both valid and invalid ranges (e.g., from tomorrow to yesterday).
3. With autoValidate: true, I expected that selecting an invalid range wouldn't even be possible.
Could you clarify how validation is supposed to work for the MiniDateRangeItem?
Hello, I'm trying out the MiniDateRangeItem, but I'm unsure about its validation behaviour.
1. If I select a valid range and call validate() on the form, the validation fails with the message "must be a date".
2. If I call validate() on the form item, it returns true for both valid and invalid ranges (e.g., from tomorrow to yesterday).
3. With autoValidate: true, I expected that selecting an invalid range wouldn't even be possible.
Could you clarify how validation is supposed to work for the MiniDateRangeItem?
Code:
isc.DynamicForm.create({ ID: "dateForm", width: 620, colWidths: [190, "*"], fields : [ { name: "mdri", title: "Mini Date Range", autoValidate:true, editorType: "MiniDateRangeItem" } ] });
Comment