SmartClient Version: v9.0p_2013-10-15/EVAL Development Only
Chrome
please modify sample #FSdmiValidation like this:
and follow the instructions of the original sample: you'll see that the validate() method will return true even if the DMI validation fails
Chrome
please modify sample #FSdmiValidation like this:
Code:
isc.DynamicForm.create({ dataSource: "validationDMI_orderForm", fields: [ { type: "header", defaultValue: "Add an item to your Order" }, { name: "itemId", title: "Item", editorType: "ComboBoxItem", optionDataSource: "StockItem", valueField: "id", displayField: "description" }, { name: "quantity", validateOnExit: true }, { name: "instructions", editorType: "TextAreaItem" }, { type: "button", title: "Submit Order", click: function (form, item) { if (form.validate()) { isc.logWarn('validate returns true') form.saveData() } } } ] });
Comment