UNPKG

formio

Version:

The formio server application.

79 lines (78 loc) 1.87 kB
module.exports = { title: 'uniqueValidationCustomMessage', name: 'uniqueValidationCustomMessage', path: 'uniquevalidationcustommessage', display: 'form', components: [ { label: 'Container', tableView: false, validateWhenHidden: false, key: 'container', type: 'container', input: true, components: [ { label: 'Data Grid', reorder: false, addAnotherPosition: 'bottom', layoutFixed: false, enableRowGroups: false, initEmpty: false, tableView: false, defaultValue: [{}], validateWhenHidden: false, key: 'dataGrid', type: 'datagrid', input: true, components: [ { label: 'Text Field', applyMaskOn: 'change', tableView: true, unique: true, validateWhenHidden: false, key: 'textField', type: 'textfield', input: true, errors: { unique: '{{ field }} Hello', }, }, ], }, { label: 'Text Field', applyMaskOn: 'change', tableView: true, unique: true, validateWhenHidden: false, errors: { unique: '{{ field }} Hello', }, key: 'textField', type: 'textfield', input: true, }, ], }, { label: 'Text Field', applyMaskOn: 'change', tableView: true, unique: true, validateWhenHidden: false, key: 'textField', type: 'textfield', input: true, }, { type: 'button', label: 'Submit', key: 'submit', disableOnInvalid: true, input: true, tableView: false, }, ], };