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 / Multiple Actions in On...
Power Apps
Unanswered

Multiple Actions in OnSelect Button not working

(0) ShareShare
ReportReport
Posted on by 28

I have two buttons on the Edit Form Screen.

One is the default save button which I added a Navigate action to.

SubmitForm([@EditForm1]); Navigate(BrowseScreen1)

It does submit the edits to the existing Sharepoint record and execute the associated Flow. It does not navigate back to the Browse screen. It stays on the Edit screen.

 

A second button was initially created to send an email with the PenInput. I also tried to add the Submit action and navigate action.

Office365Outlook.SendEmailV2(DataCardValue19.Text, DataCardKey10&" "&"#"& DataCardValue10.Text, "",{Attachments:Table({Name:"Test.jpg",ContentBytes:PenInput1.Image,'@odata.type':""})}); SubmitForm(EditForm1); Navigate(BrowseScreen1)

 

It also executes the first action, but neither of the two additional actions.

 

I have tried single semi-colons, double semi-colons (which causes a formula error) and both having a space after the semi-colon and not having a space after the semi-colon.

 

What am I not doing correctly?

Categories:
I have the same question (0)
  • UdayAdhikari Profile Picture
    450 Most Valuable Professional on at

    @ghswebmaster - ok, I have experienced a similar issue before and turns out I was navigating to the same screen lol so I hope that's the case with you but can you confirm please. Next, I would try to create a new screen and try to navigate to that screen to rule out nothing is wrong with your BrosweScreen1. I don't see any issue with the code. Also, try typing couple of letters of the screen and select from the suggested dropdown instead of manually typing the screen name.

     

    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.

    Thanks

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

    Hi @ghswebmaster ,

    I do not think using ";" to connect two actions is wrong. 

    It looks like in your region, you just need to use "," and ";".

    Please do not try ";;".

    Only in some regions, they need to use ";" instead of "," and ";;" instead of ";".

    I suggest you insert three buttons.

    set button1's OnSelect:

    Office365Outlook.SendEmailV2(DataCardValue19.Text, DataCardKey10&" "&"#"& DataCardValue10.Text, "",{Attachments:Table({Name:"Test.jpg",ContentBytes:PenInput1.Image,'@odata.type':""})})

     set button2's OnSelect:

    SubmitForm(EditForm1)

      set button3's OnSelect:

     Navigate(BrowseScreen1)

    Please check the formula one by one to see whether one has any problem.

     

     

     

    Best regards,

  • ghswebmaster Profile Picture
    28 on at

    Thank you for confirming the use of a single semi-colon. I already have multiple buttons. I am trying to get it to one to make it simpler for end users.

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

    Hi @ghswebmaster ,

    No, what I mean is that:
    split actions to multiple buttons.

    Then trigger them one by one to find which action has problem.

    Have you tired this?

     

    Best regards,

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