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 / Disabling a Form based...
Power Apps
Answered

Disabling a Form based on a button selection

(0) ShareShare
ReportReport
Posted on by 260

Hi All, 

 

I want to disable a form based on a button selection. So far, when the button is selected a form the is view only changes to edit, but when this form is in edit I want the other forms to change to disabled. How do I achieve this? 

 

Form 1 = View

Form 2 = Edit

Form 3 = Edit

Button = EditForm(Form1)

Form 1 = Edit

Form 2 = Disabled

Form 3 = Disabled

 

I also want another button to appear as well if Form 1 is in Edit

 

Categories:
I have the same question (0)
  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @carrie-anne27 ,

     

    Here is a method for your reference.

    Take the button which change Form1's mode to Edit as an example. You can use below formula on OnSelect of button.

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

     

     

     

    Best regards,

    Rimmon 

  • Verified answer
    WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    Hi @carrie-anne27 ,

    The only modes available for a Form are View, Edit and New. When you press the button, you can do this

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

    If you want another button to be visible when Form1 is in Edit Mode, put this on the Visible

    Form1.Mode = FormMode.Edit

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard