Upvote 1

create a third event if the previous two are valid

Answered Bardutl 3 years ago


I am doing a prototype for a mobile app in Android and I have issues with events.

More exactly, on the "Registration page", I have "Submit" button on which I want to put 3 events.

1: to check if the format for email address is correct -> I have done this

2: to make sure the "password" field is completed -> I have done this

3: if those two events are done and correct, I want to add a third event which will take me to another page in the app (let's say to "sign in page");

I couldn't figure out what kind of conditions to put, so that after the first two events are checked and confirmed , the third one to be taken into consideration and applied.

Sorry for mistakes, English is not my native language.

Thank you!

Replies (1)

You can create one condition that checks to see if the format of the email address is correct and makes sure that the 'password' field is completed. Here's an example of how it should look:


Let me know how this works for you, and if you have any questions.


Hi Danielle,

Thank you so much for your quick reply!

The condition you gave me works fine, but is not what I need. Not completely. I also need the messages in red to show, as in the picture attached:

1. if the email is not in the correct format, message "Please enter a valid email" should show

2. if there in no text in the password field, message "This field in required"

That's why I made two events, because I couldn't figure out how to put all conditions and rules in the same line. And even though I put them in two separate events, which works perfect, I got stuck when I was meant to go on the next page (after validating everything).

Is there any possibility to do that? To go on the next page only after both fields are checked, and in case the information is missing or incorrect, those messages will appear. And only when everything is fine, the used can go on next page.

I really hope I made myself clear, as it's kind of difficult for me to explain it.

Thank you again!


That makes perfect sense. Apologies - I should have been more clear. This should be a condition that's added to a separate event. So right now you have two events - one that shows the 'please enter a valid email' text, and another that shows the 'this field is required'. You can create one last event that is an "On Tap" + "Link to" event, which links to another screen. Then, add a condition for that event, like the one in the image I attached above. The way you created the events is actually the best way to do this, rather than creating one event with three different conditions.


Danielle, you are the best !!! Thank you so much !!

Have a lovely day.

Leave a Comment
Attach a file