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 / SharePointIntegration ...
Power Apps
Answered

SharePointIntegration with multiple screens

(0) ShareShare
ReportReport
Posted on by 52
Hi all,
 
I've been reading some solutions from users with similar issues but for any reason they are not working on my side.
Here is the scenario.
I'm using Microsoft Teams and a List. This list was integrated with Power Apps + Customize Forms. This integration creates automatically the App with the SharePointIntegration and all fields in just 1 form and screen.
What I did was to duplicate the 1st screen into more 2 screens and then remove unwanted form fields.
So I have all fields but split into 3 different screens:
 
When I click on "+ Add new item" I fill all the fields from the 3 screens:
 
Then when I click on "Save" at the top only the data filled on the 1st screen is saved. 
Then I changed the formula OnSave in the SharePointIntegration to: 
SubmitForm(frm_Page1_WorkOrders);SubmitForm(frm_Page2_WorkOrders);SubmitForm(frm_Page3_WorkOrders)
 
Then when I click on "Save" at the top, all data filled was saved but in 3 line items and not on the same item:
 
How can I solve this?
Categories:
  • Suggested answer
    Pacel1 Profile Picture
    79 on at
    Your issue arises because each SubmitForm action treats the submission as a separate item,
    resulting in three distinct items being created instead of a single one.
    The solution is to use a hidden form that consolidates all the data from your three screens into one form, which is then submitted as a single item.
     

    For each field in the hidden form, set the Default property to reference the respective control in your three visible forms. For example, if you have a text input on frm_Page1_WorkOrders named txt_WorkOrderName, you can set the corresponding field in the hidden form as:

    txt_WorkOrderName.text
     

    And at the end You have to submit only the new created form :)


    When You test that all data is recived from Your new Forl, You can hide it :)

  • Pacel1 Profile Picture
    79 on at

    Another solution is to use a single screen and a single form while managing visibility dynamically based on a variable. This approach simplifies the app structure and avoids the complexity of multiple screens and forms. Here’s how to implement it:


    Step 1: Initialize a Variable

    1. In the OnStart property of your app (or in the screen’s OnVisible property), initialize a variable to control which fields are visible:
       
      Set(varVisibleProp, 0)
       

    Step 2: Use a Single Form

    1. Add a single form (EditForm) connected to your SharePoint list.
    2. Include all the fields that the user needs to fill in across the "screens."
    3. Set the Visible property of each field based on the variable:
      • For fields in the first "screen":
         
        If(varVisibleProp = 0, true, false)
         
      • For fields in the second "screen"
         
        If(varVisibleProp = 1, true, false)
         
      • And so on, for additional "screens."

    Step 3: Add a Navigation Button

    1. Add a button to act as a Next/Save button.
    2. Set its OnSelect property to adjust the variable or save the form:
       
      If(
      varVisibleProp < 2, // Adjust this number to match your final step
      Set(varVisibleProp, varVisibleProp + 1),
      SubmitForm(Form1)
      )
       
    3. Update the button’s Text property dynamically:
       
      If(varVisibleProp = 2, "Save", "Next")
  • Verified answer
    timl Profile Picture
    37,424 Super User 2026 Season 2 on at
    Hi  MI2022 
     
    Another option is instead of calling SubmitForm, you can call Patch and reference your 3 forms. The formula you would add to the OnSave of your SharePointIntegration object is:
     
    Patch(YourSharePointListName,
          Coalesce(SharePointIntegration.Selected, Defaults(YourSharePointListName)),
          frm_Page1_WorkOrders.Updates,
          frm_Page2_WorkOrders.Updates,
          frm_Page3_WorkOrders.Updates
    )
    
      
  • kmw1130 Profile Picture
    995 on at
    @Pacel,
     
    I need to be able to go back or reset the form.  I put a button to ResetForm or Set(varVisibleProp, 0)
     
    I'm not sure what will work to reset the form or go back.
  • CU29081810-2 Profile Picture
    2 on at
    I discovered that the best solution in working with a sharepoint custom form in power apps is working in one appscreen only. This will ensure that all datafields will be populated and there will never be a risk of saving blank values from forms that haven't been loaded yet. Data in a form will only load when the screen where it lives is visible.
     
    Then there are two options. Set the visibility per field. There are different ways for doing this. I like to use the modern tablist. So then you select a field and for visibility it will be
     
    If(tablist1.selected.value = "tabname" ;true;false)
     
    Another posibilty to use multiple forms and then set the visibility of the forms. 
     
    Big advantage is you only have to deal with one screen. The user will think there are multiple screens. 

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard