Using Validate (Username) To Determine Redirect

All Wappler Geniuses:

Is it possible to use the login action – on success – by using the validator on the existence of a username to determine a redirect?

Please take a look at the two examples below, to see the process I have in mind of how this can be done.

Example 1: A user logs in, and the validation determines their username is NOT in the database, the result of the redirect would take them to a create login page.

Example 2: A user logs in, and the validation determines their username IS in the database, the result of the redirect would take them to their personal page.

Thank you for any suggestions!

You can use onsuccess event to redirect the users who log in successfully and invalid event when there is a validation issue (validate step returning error).

Of course! So if it fails, the INVALID event will redirect to whatever page I want? That’s great!

It’s amazing how our focus can be so small and blurred until a friend steps in… Thanks, Teodor.