cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
biancadevera
Helper III
Helper III

Navigate screen with Patch

On my Submit button, I have this code:

 

If(
    IsBlank(txtValue.Text) || IsEmpty(drpValue.Selected.Value),
    Notify("Please fill out all fields marked with asterisk (*)", NotificationType.Error), Patch ({update_here});

 

Where can I put my navigate(successscreen)? I tried adding it after patch but it submits even with errors with the Notify message.

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @biancadevera ,

Try

If(
   Len(txtValue.Text)=0,
   Notify(
      "Please fill out all fields marked with asterisk (*)", 
      NotificationType.Error
   ),
   Patch(
      {update_here}
   );
   Navigate(SuccessScreen)
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

View solution in original post

4 REPLIES 4
PTBBSolutions
Solution Supplier
Solution Supplier

It should be after the patch indeed, separated with a ';' and before closing the if bracket. Patch({});Navigate())

WarrenBelz
Super User
Super User

Hi @biancadevera ,

Try

If(
   Len(txtValue.Text)=0,
   Notify(
      "Please fill out all fields marked with asterisk (*)", 
      NotificationType.Error
   ),
   Patch(
      {update_here}
   );
   Navigate(SuccessScreen)
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

biancadevera
Helper III
Helper III

Will try these

Hi @WarrenBelz  This worked! Thank you.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,429)