cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Launch with SubmitForm

Hi there,

 

I made a button to save the data into SharePoint and use Launch to open a new documentset (URL). I use required fields, the problems is. The PowerApp gives the warnings but the launch will open the site in a new tab.

 

Is it possible to only open a new documentset (URL) when all the fields are filled in? 

1 ACCEPTED SOLUTION

Accepted Solutions
RezaDorrani
Dual Super User II
Dual Super User II

Hi @Anonymous 

 

In PowerApps every Form control ha san OnSuccess property

 

OnSuccess only fires when data is posted successfully to data source 

Hence it is the best place to put the Launch action

 

OnSuccess - Launch (your url)

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
mdevaney
Super User III
Super User III

@Anonymous 

After your form is submitted use the IF function to check whether there were any errors on the form.

 

SubmitForm(your_form_name);
If(IsBlank(your_form_name.Error),Launch(your_URL_here))

 

---
Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."

RezaDorrani
Dual Super User II
Dual Super User II

Hi @Anonymous 

 

In PowerApps every Form control ha san OnSuccess property

 

OnSuccess only fires when data is posted successfully to data source 

Hence it is the best place to put the Launch action

 

OnSuccess - Launch (your url)

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

Anonymous
Not applicable

Thank you for the answer. OnSuccess is the key, this works perfect 🙂

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

Top Solution Authors
Top Kudoed Authors
Users online (54,097)