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 / Forms Creating a circu...
Power Apps
Unanswered

Forms Creating a circular reference

(0) ShareShare
ReportReport
Posted on by 3,295

Hi:

I have two forms that has to be completed both in order to get a product price like an Estimate based on some questions. But total price won't be completed until I have finished the forms. If I put a column in my SharePoint list i.e price. And in my form I made a reference to a label Price.txt then I am creating the circular reference so I can not Save the form.

 

To save bot forms I am using Submit(Form1); Submit(form2).

 

The questions is how can I submit both forms and additionally for Form1 add the price?

thanks in advance for any response

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @sajarac 

    If your total is coming only after form 2 is submitted and yet you have already submitted form1, then you will need to make another data operation in your form2 to update the record you make/updated in form1.

     

    My suggestion would be...

    Change your submit to be only: SubmitForm(Form1)

    In Form1 in the OnSuccess Action, set the formula to:

       Set(glbCurrentRecord, Self.LastSubmit);  SubmitForm(Form2)

     

    In Form2 in the OnSuccess Action, set the formula to:

       UpdateIf(yourForm1DataSource, ID=glbCurrentRecord.ID, {TotalColumnName: <totalColumnValue>})

     

    I hope this is helpful for you.

  • Sajarac Profile Picture
    3,295 on at

    Hello Sir. Glad to see you around!

    hope everything is good and thank you very much for your prompt response.

    Unfortunately the value in this case the price is produced only with the combination of the two forms based on some inputs. 

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @sajarac 

    Good to see you as well.  I think I have missed your last few posts and someone else grabbed them and responded.

     

    I don't see that there is an issue.  

    The first form would submit (which you were doing before) and then you will be using (in the second) the combination of the first form and the second form to then put back a total value to the original record.

     

    If that is not the case, then tell me more about the flow of your app and how that would not work.

     

  • Sajarac Profile Picture
    3,295 on at

    OK, I need the combination of both forms to produce the price. but I am saving the back back to one of the Share Point List in this case (Form1).

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard