Input Validation

Copy source code


Create a selector in twik for the input field you would like to validate. Connect it to this variant to set up a validation stage for the input entered - set a 'trigger_value' in the script and as many correct values as you need. Choose the texts you wish to be displayed in the dialogue and error message. Once a correct answer is provided, the user can go back to the funnel, otherwise the input field will be emptied.





out of 0

Thank you! Your submission has been received!

Explore more resources

You can use Twik's widgets to create beautiful, effective variants on your website such as popups, shorter forms, and more.

Try it now

See what Twik can do for you with our free 14-day evaluation period, limited to 1,000 pageviews.