Category: How do I do X?

This solution is summarized from an archived support forum post. This information may have changed. If you notice an error, please let us know in Discord.

How to do text field validation and load specific pages?


As a user, I need to enter an email address into an input field, and depending on the email address, I want to be redirected to a specific page. I am looking for a tutorial or help on how to implement this in Appsmith.


The user had a requirement to redirect a user to a specific page based on the email entered into an input field. To achieve this, the user can use the mustache syntax to write JavaScript on different properties of widgets. The solution involved dragging and dropping a button on the UI and copying the provided JS code on the button’s onClick property. The code used the ternary operator to check the email entered and redirected the user to the appropriate page using the navigateTo function.