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 / SharePoint List - Powe...
Power Apps
Answered

SharePoint List - Power App Form - OnSave (Multiple Screens/New Forms)

(0) ShareShare
ReportReport
Posted on by 6

Hi all,
I have a Power App for my form integration. Rather than have 1 form only and having to Hide/Show based on a dropdown selection, I chose to have two different Screens, both of which save to my single SP List.

 

The problem I am facing is form 1 saves no problems, my other form won't. I feel my logic is ok. is this possible what i'm trying to do? I understand about targeting forms on different pages, but I've not come across OnSave where there are multiple save form choices.... I've only ever seen tutes with View, Edit and New separate pages.

 

Am I approaching this incorrectly, and maybe go back to just one "New" form? I hope not, because the design of the forms is very specific for the use case, and I didn't want to show/hide based on request type...

 

Some details:

Screen 1 for adding new: FormNewItem (Form: SharePointForm) works perfect, and saves to my SP list
Screen 2 for adding new: FormNewItemSigns (Form:  SharePointFormSigns) won't save (OnError just says problem)

 

Variable: SharePointFormMode - used to define what page I'm on (also trying with active screen)

 

SharePointIntegration
- OnCancel

 

ResetForm(SharePointForm);
ResetForm(SharePointFormSigns);
ResetForm(SharePointFormEdit);

 

- OnEdit

 

Set(
 SharePointFormMode,"EditForm"
);
EditForm(SharePointFormEdit);
Navigate(
 EditFormScreen, ScreenTransition.None
);

 

- On Save

 

If(
 App.ActiveScreen.Name = "FormNewItem" || SharePointFormMode = "NewForm",
 SubmitForm(SharePointForm),
 App.ActiveScreen.Name = "FormNewItemSigns" || SharePointFormMode = "NewFormSigns",
 SubmitForm(SharePointFormSigns),
 App.ActiveScreen.Name = "EditFormScreen" || SharePointFormMode = "EditForm",
 SubmitForm(SharePointFormEdit)
)

 

- OnNew

NewForm(SharePointForm);
NewForm(SharePointFormSigns);
Set(
 SharePointFormMode,"NewForm"
);
Navigate(
 FormNewItem,ScreenTransition.None
);

- OnView

 

Set(
 SharePointFormMode, "ShowForm"
);
ViewForm(SharePointForm);
Navigate(
 FormNewItem,ScreenTransition.None
)

 

- OnCancel

 

ResetForm(SharePointForm);
ResetForm(SharePointFormSigns);
ResetForm(SharePointFormEdit);
Navigate(
 FormNewItem, ScreenTransition.None
);
Set(
 SharePointFormMode,""
);

 

 

FormNewItem screen

404ryannotfound_1-1625227197964.png

 

FormNewItemSigns screen

404ryannotfound_3-1625228413594.png

 

 

Any thoughts are really appreciated.

 

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,797 Most Valuable Professional on at

    Hi @404ryannotfound ,

    My experience with integrated forms with multiple screens supports what you are seeing and I ignore (often disable part of) the integrated controls and do everything on buttons on the forms (effectively treat it as a Canvas App). Once you go down this path, all works as expected.

     

    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.

  • 404ryannotfound Profile Picture
    6 on at

    Thanks mate,

    I'll give that a go. Unfortunately I'll have to draw the users attention to the save (since they'll no longer be able to use the standard List save button. I may then (for standard usability) see if a single form with show/hide fields plus a bit of visual wizaredry is the go instead. Much appreciated!

  • 404ryannotfound Profile Picture
    6 on at

    As an aside for others, I did just that... Used Hide/Show for what iw anted to see.

    To make the content more dynamic, I used an "if" selected... and did some fancy width manipulation for the form, and show for my "design" additions.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard