cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Tej7299
Regular Visitor

Power App canvas design close the form

After creating power app in canvas mode for submit data into sharepoint list.user able to submit the data but after that how to close the app/is there any way to show the custom message in between screen then close the app.please let me know.
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Power App canvas design close the form

Hi @Tej7299 ,

Do you want to display  custom message after you submit the form and on this custom message you could close the app?

Well, you could set the form's OnSuccess to make the custom message visible, which means after the form is submitted successfully, the message will show.

I've made a similar test for your reference:

1)insert a Rectangle, a "x" icon, a button, a label. Group them together as the custom message.

Set the label's Text:

"You've submitted the form successfully!"

set the "x" icon OnSelect:

Set(var,false)

set the exit button's OnSelect:

Exit()

set this group's Visible:

If(var,true,false)

224.PNG

 

2)set the form's OnSuccess:

Set(var,true)

 

 

Then after you submit the form successfully, the custom message window will display, if you click the "x" icon, the window will disappear, if you click "exit" button, you will close the app.

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Eelman Resident Rockstar
Resident Rockstar

Re: Power App canvas design close the form

@Tej7299 

For an exit message you would need to create this yourself then use the Exit() function. Scenario could be:

 

1. user submits form

2. start a timer eg 3secs

3. have a Label that displays via a variable, text is your choice eg "Thank you for your response"

4. timer ends

5. Exit()

 

There are plenty of YouTube videos on Timers & Pop-ups, here's a Timer one

https://www.youtube.com/watch?v=Xe2NI2aTGvY

 

 

 

Community Support
Community Support

Re: Power App canvas design close the form

Hi @Tej7299 ,

Do you want to display  custom message after you submit the form and on this custom message you could close the app?

Well, you could set the form's OnSuccess to make the custom message visible, which means after the form is submitted successfully, the message will show.

I've made a similar test for your reference:

1)insert a Rectangle, a "x" icon, a button, a label. Group them together as the custom message.

Set the label's Text:

"You've submitted the form successfully!"

set the "x" icon OnSelect:

Set(var,false)

set the exit button's OnSelect:

Exit()

set this group's Visible:

If(var,true,false)

224.PNG

 

2)set the form's OnSuccess:

Set(var,true)

 

 

Then after you submit the form successfully, the custom message window will display, if you click the "x" icon, the window will disappear, if you click "exit" button, you will close the app.

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (6,211)