SmartClient 13.1 added automatic generation of date range validators to date inputs, but this doesn't work correctly with RelativeDateItem:
Choosing any of predefined input options will result in a "Invalid value" validation error.
Looks like previously this field contained a "isDate" validator with casting, which ensured that this field's value was always returned as a Date instance. Now it returns Date or RelativeDate, depending on the way that value was set.
Also, looks like "required: true" no longer results in generation of a "required" validator, so en empty value always passes validation, even when it shouldn't.
Tested in:
Code:
isc.DynamicForm.create({ ID: "dateForm", width: 650, fields: [{ name: "pickListDate", title: "PickList Date", type: "datetime", editorType: "RelativeDateItem", validateOnChange: true, endDate: isc.DateUtil.getAbsoluteDate("$endOfYesterday") }] });
Looks like previously this field contained a "isDate" validator with casting, which ensured that this field's value was always returned as a Date instance. Now it returns Date or RelativeDate, depending on the way that value was set.
Also, looks like "required: true" no longer results in generation of a "required" validator, so en empty value always passes validation, even when it shouldn't.
Tested in:
- v13.1p_2025-08-03/AllModules Development Only
- v14.1p_2025-08-01/AllModules Development Only
Comment