cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mwintersparker
Helper I
Helper I

Button Visibility issue with Navigate()

I created a "submitted" button to appear after pressing a different "submit" button. It appears for like half a second but then disappears. I believe this is because I have OnStart for the power app to navigate to the edit screen. I need to keep this functionality. Is there any way around this?

1 ACCEPTED SOLUTION

Accepted Solutions

OK, in the studio, press the Variables menu choice:

BCLS776_0-1624550204388.png

Select your variable (ShowPopUp):

BCLS776_1-1624550262686.png

You'll get a list of all the places in your app it is mentioned:

BCLS776_2-1624550313705.png

Can you post that info?

 

 

View solution in original post

7 REPLIES 7
BCLS776
Solution Sage
Solution Sage

Can you share how you are creating this "submitted" button, including the applicable code? I've seen these kinds of notifications done with a navigate to a short-lived splash screen or using the Notify function, but I am not quite sure which mechanism you are using.

mwintersparker
Helper I
Helper I

yes. I made a submitted button and set visibility to If(ShowPopUp, true, false). For the submit button i set onselect to Set(ShowPopUp, true)

OK, so something happening shortly afterwards in your app is toggling ShowPopUp back to false very quickly. Can you find and share that?

i cannot. I assume that it is because onStart is set to NewForm(EditForm1);Navigate(EditScreen1, ScreenTransition.None)

OK, in the studio, press the Variables menu choice:

BCLS776_0-1624550204388.png

Select your variable (ShowPopUp):

BCLS776_1-1624550262686.png

You'll get a list of all the places in your app it is mentioned:

BCLS776_2-1624550313705.png

Can you post that info?

 

 

View solution in original post

mwintersparker_0-1624554904203.png

 

BCLS776
Solution Sage
Solution Sage

OK, while nothing is turning ShowPopUp to false directly, the call of Back() in the OnSuccess property is quickly changing the screen as soon as your form successfully submits. This makes your button vanish as soon as the screen changes. It sounds like this is not the behavior you are after. Can I suggest?:

  • Use the OnSuccess as a way to Navigate to a new success screen
  • On your success screen, put your success message up
  • Depending on how you like your UI, place a button that when clicked will Navigate or Back the user to an appropriate screen, or hide a timer (AutoStart true) on the screen and set its OnTimerEnd property to do the navigation you are after

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (4,166)