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 Apps
Unanswered

save buton

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

hi,

my apps has 8 edit form and at the end a buton to save it

and when i try to register there a message "unknow error" any idea?

 

my code for the button

 

onSelect:

If(EditForm1_0.Mode=FormMode.Edit;
Patch(Tableau1;BrowseGallery1.Selected;
EditForm1_0.Updates;
EditForm1_1.Updates;
EditForm1_2.Updates;
EditForm1_3.Updates;
EditForm1_4.Updates;
EditForm1_5.Updates;
EditForm1_6.Updates;
EditForm1_7.Updates);
Patch(Tableau1;Defaults(Tableau1);
EditForm1_0.Updates;
EditForm1_1.Updates;
EditForm1_2.Updates;
EditForm1_3.Updates;
EditForm1_4.Updates;
EditForm1_5.Updates;
EditForm1_6.Updates;
EditForm1_7.Updates))
;;
Navigate(BrowseScreen1;ScreenTransition.Fade )

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    https://www.spsimply.com/home/powerapps-submit-multiple-forms-at-once
    i use this to save

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Anonymous  Not sure if this will solve the issue, but I believe you need to change all the semicolons to commas except for the one between your If and Navigate formulas.

     

    If(EditForm1_0.Mode=FormMode.Edit,Patch(Tableau1,BrowseGallery1.Selected,EditForm1_0.Updates,EditForm1_1.Updates,EditForm1_2.Updates,EditForm1_3.Updates,EditForm1_4.Updates,EditForm1_5.Updates,EditForm1_6.Updates,EditForm1_7.Updates),Patch(Tableau1,Defaults(Tableau1),EditForm1_0.Updates,EditForm1_1.Updates,EditForm1_2.Updates,EditForm1_4.Updates,EditForm1_5.Updates,EditForm1_6.Updates,EditForm1_7.Updates));Navigate(BrowseScreen1,ScreenTransition.Fade)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    replacing "," with ";" is just a language mark i think, i try but that's not work

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you show me more details about your settings? like the gallery's , form's,etc.

    I've made a similar test and found that you need to make more settings about Mode in this scenario, you could refer this:

    Set the gallery's arrow icon's OnSelect:

    Set(a,"Edit");Navigate(Screen3,None)

    Set the insert icon's OnSelect:

    Set(a,"New");Navigate(Screen3,None)

    Set the forms' DefaultMode:

    If(a="New",FormMode.New,FormMode.Edit)

    Set the forms' item:

    Gallery1.Selected

    Set the submit button's OnSelect:

    If(a="Edit",Patch(table,Gallery1.Selected,Form1.Updates,Form2.Updates),
    a="New",Patch(table,Defaults(table),Form1.Updates,Form2.Updates)
    );
    Navigate(Screen2,None)


    5106_LI.jpg

     

     

    Best regards,

    Community Support Team _ Phoebe Liu

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    hi @v-yutliu-msft 

    thanks for trying to help me


    i have news about my probleme : in fact the error appear just in the browser apps or in the test part, if the app is used on a phone that's works correctly without error but i don't understand why...

     

    new imput button :

    NewForm(EditForm1_0);;
    NewForm(EditForm1_1);;
    NewForm(EditForm1_2);;
    NewForm(EditForm1_3);;
    NewForm(EditForm1_4);;
    NewForm(EditForm1_5);;
    NewForm(EditForm1_6);;
    NewForm(EditForm1_7);;
    Navigate(EditScreen1_0; ScreenTransition.None)

    perdu1.png

    gallery's arrow :

    EditForm(EditForm1_0);;
    EditForm(EditForm1_2);;
    EditForm(EditForm1_3);;
    EditForm(EditForm1_4);;
    EditForm(EditForm1_5);;
    EditForm(EditForm1_6);;
    EditForm(EditForm1_7);;
    Navigate(EditScreen1_0; ScreenTransition.None)

    perdu2.png

    I don't change the submit button

     

    form's item is good

     

    but what is the a your code?

     

    thanks a lot

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    UP

    Sans titre.png
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    up

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 431

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 280 Super User 2026 Season 1

Last 30 days Overall leaderboard