I need to add a text field which requires a regex validation.
We allow user input, but the input must contain the users last name.
I can pass the last name from the workflow to the form.
How to I add a regex validation on the field that contains the last name?
The field (email username) must contain the last name in the field.
For example: jack.doe (If the user enters an email username for John Doe)
Failed Test Expression: ^[a-z0-9_-]+.{{$.form.input.lastName}}
I don’t think form inputs can be used anywhere besides labels, or of course in conditions.
Probably try something like this in Conditions?
And make the Password field mandatory which will not let the user submit the form
Hi @faye_jacobs1,
I don’t think that’s possible. However, you can add a condition to your form as suggested by @iamnithesh, and based on that, allow the user to submit it. You could also include help text with the field to guide users to ensure they enter their last name.