You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we don't have any way of validating form, e.g i want to send data to my CRM which have some requirements for specific fields.
Lets say we want to select email field to specific input but if have select invalid value, like date for the email input, then when the data is being sent my record will be break.
Desired Behavior / Feature Request
While mapping input fields with the data, we should be able to add custom validations for specific input.
like this
operation: { inputFields: [ { key: 'email', label: 'Email Address', type: 'string', required: true, helpText: 'Please enter a valid email address.', // Using a regular expression for validation validation: { regex: '^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$', errorMessage: 'Must be a valid email address.' } }, { key: 'zip_code', label: 'ZIP Code', type: 'string', required: true, helpText: 'Enter a 5-digit ZIP Code.', validation: { regex: '^\\d{5}$', errorMessage: 'ZIP Code must be exactly 5 digits.' } } ] }
The text was updated successfully, but these errors were encountered:
Current Behavior
Right now we don't have any way of validating form, e.g i want to send data to my CRM which have some requirements for specific fields.
Lets say we want to select email field to specific input but if have select invalid value, like date for the email input, then when the data is being sent my record will be break.
Desired Behavior / Feature Request
While mapping input fields with the data, we should be able to add custom validations for specific input.
like this
operation: { inputFields: [ { key: 'email', label: 'Email Address', type: 'string', required: true, helpText: 'Please enter a valid email address.', // Using a regular expression for validation validation: { regex: '^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$', errorMessage: 'Must be a valid email address.' } }, { key: 'zip_code', label: 'ZIP Code', type: 'string', required: true, helpText: 'Enter a 5-digit ZIP Code.', validation: { regex: '^\\d{5}$', errorMessage: 'ZIP Code must be exactly 5 digits.' } } ] }
The text was updated successfully, but these errors were encountered: