web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Problems with Success ...
Power Apps
Answered

Problems with Success Screen

(0) ShareShare
ReportReport
Posted on by 242

Hi there,

 

I can't get the Success Screen to work (ThankYouScreen). I've scoured the forums and no luck.

 

For FormScreen1, I have the following when clicking on the Button:

 

OnSelect

SubmitForm(NewNominationForm);
Notify("Form Submitted", Success);
Navigate(ThankYouScreen, ScreenTransition.Fade);
ResetForm(NewNominationForm)

 

For NewNominationForm:

 

OnSuccess

ResetForm(NewNominationForm); RequestHide()

 

But it doesn't work. Could some kind person please guide me through this? I am new to PowerApps.

I have attached a pic (removed words for privacy).

Thank you.

 

2020-02-25 16_18_46-forms - Power Apps.png
Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    Hi @spinneroo 

    The blue bit on the end of the OnSuccess code below will close the PowerApps integration and you will never get to the ThankYouScreen,

    Remove this and put it on the ThankYouScreen exit button.

    ResetForm(NewNominationForm); RequestHide()

    So what you are left with is:

    OnSelect - the same except swap the last two items around

    SubmitForm(NewNominationForm);
    Notify("Form Submitted", Success);
    ResetForm(NewNominationForm);
    Navigate(ThankYouScreen, ScreenTransition.Fade)

    For NewNominationForm:OnSuccess

    ResetForm(NewNominationForm)

    For the Exit button on the ThankYouScreen

    RequestHide()

     

    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.

  • JesperHuang Profile Picture
    56 on at

    Hi @spinneroo ,

     

    I suggest you simplified your scenario first.

    In "Onselect", only leave Navigate(ThankYouScreen, ScreenTransition.Fade); and try if it's work.

     

    Then try to add other code, and check which cause the error. 

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @spinneroo ,

    Could you please share a bit more about your issue?

    Do you mean that the ThankYou screen could not show up well?

     

    Based on the issue that you mentioned, I think this issue is related to the RequestHide() formula you typed within the OnSuccess property of the NewNominationForm.

     

    When you submit your form successfully, the OnSuccess Event would be fired, and the RequestHide() function would be executed. Even though, the Navigate(ThankYouScreen, ScreenTransition.Fade) formula has been called, the RequestHide() function would force to close/hide the Edit form app.

     

    As an fixed solution, please consider take a try with the following workaround:

    Set the OnVisible property of the ThankYou screen to following:

    Set(IsStart, true)

    Add a Timer control in your ThankYou screen, set the Duration property to following:

    1000

    set the Start property to following:

    IsStart

    set the OnTimerEnd property to following:

    Set(IsStart, false);
    RequestHide()

     

    Within your FormScreen1, set the OnSelect property of Button to following:

    SubmitForm(NewNominationForm);
    Notify("Form Submitted", Success);

    Set the OnSuccess property of the NewNominationForm to following:

    ResetForm(NewNominationForm);
    Navigate(ThankYouScreen, ScreenTransition.Fade);

     

    Please consider take a try with above solution, check if the issue is solved.

     

    Best regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard