web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / SharePoint List - Powe...
Power Apps
Unanswered

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
    153,040 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard