If question answered "yes" then save and open new page

Hi,

I have an app where the user has to answer the question, “Did you get an order? Yes/No”. If the user answers “yes” then I would like the app to save and close the current page and open the “Orders” page. If no, then simply save the page and go to the opening page of the app. The picture below might help make things a bit clearer.

Could you please tell me how to go about doing this?

Actions do notwork within forms, so you cannot cause the navigation to happen immediately when the use clicks a button. Instead, you’ll have to attach an action to the form view’s configuration as the Form Saved event action: