cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sajarac
Kudo Kingpin
Kudo Kingpin

Submit 2 forms based on Unsaved

Hi there.

I would like to know if this is possible, or if there is another way to do it?

 

I have two forms in my screen Form1 and Form2, each form is connected to a different sharepoint list. And I have an EDIT, CANCEL and SAVE Buttons.

 

The SAVE icon visible property will show up if the form1 || Form2.Unsave is true.

 

What I want to do it is Submit Form1 or Form2 if one or the other one or both has changed. I thought with the Switch formula can do it or with an IF statement. But I am having issues getting this.

 

Any advice please?

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @sajarac ,

Try

If(
   Form1.Unsaved,
   SubmitForm(Form1)
);
If(
   Form2.Unsaved,
   SubmitForm(Form2)
);

 

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.

View solution in original post

4 REPLIES 4
WarrenBelz
Super User
Super User

Hi @sajarac ,

Try

If(
   Form1.Unsaved,
   SubmitForm(Form1)
);
If(
   Form2.Unsaved,
   SubmitForm(Form2)
);

 

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.

View solution in original post

sajarac
Kudo Kingpin
Kudo Kingpin

Hello Sir. and thank you very much for your prompt response.

Silly question?

If both forms are "unsaved" this statement will works?

 

Thanks again.

Hi @sajarac ,

I left a line off my post (see now) and yes they both would work.

 

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.

sajarac
Kudo Kingpin
Kudo Kingpin

Thank you very much Sir.

 

🙂

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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 (1,127)