Skip to main content

Notifications

Community site session details

Community site session details

Session Id : xpTrfFH8C1InKF67nk7Act
Power Apps - Building Power Apps
Unanswered

Switch form from view to edit with a button for multiple forms on one screen

Like (0) ShareShare
ReportReport
Posted on 19 Jan 2024 15:44:12 by 59

I have an app that is allowing a team to keep track of progress for a technicians work. I have multiple forms in one screen as there are different aspects I need to capture throughout the year at different times. I was unable to use the one form and move the fields around in a desirable format for viewing and editing. Again, new to PowerApps. 

 

What I am looking to achieve:

 

I want the screen to have the form in view mode when the user gets there, If they need to edit either form they can select a "edit" icon that brings them to the edit screen, (which I think I have completed for one of the forms on the screen). I am unable to get the other forms to work using the same button. The second issue is that when they hit the save button, I wish for them to go back to the view mode. As of now it stays in the edit mode screen. Any help is appreciated. Thanks.

Categories:
  • Ami K Profile Picture
    15,665 Super User 2024 Season 1 on 19 Jan 2024 at 19:10:13
    Re: Switch form from view to edit with a button for multiple forms on one screen

    @Kopistars11 regarding the first issue, you can add an EditForm function onto your Edit Icon multiple times per the number of Forms. For example:

     

    EditForm(Form1);
    EditForm(Form2);
    EditForm(Form3)

     

    Regarding the second question, ensure the DefaultMode property of your Edit Form is set to:

     

    FormMode.View

     

    To ensure the Form returns to View Mode after hitting the Save button, on the OnSucess property of your Edit Form, enter:

     

    ViewForm(Form1)

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started