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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,072)