cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AA53
Helper I
Helper I

Button to be enabled when form is in edit mode

I have a button that I would like it to be enabled for the user to click on only if the form become on edit mode and not on view mode.

 

There is another button that will be clicked by the user to make the form on edit mode and once this icon is selected (this is edit icon that is Onselect edit form) I want the other icon to be enabled for the user to use.

 

I have written below code but not working any advice would be appreciated.

AA53_0-1598012772291.png

Any advice would be appreciated. Thank you in Advance

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
krishnags
Super User
Super User

@AA53 try this If(Form1.DisplayMode = DisplayMode.Edit,DisplayMode.Edit,Disabled)

View solution in original post

@AA53 ,

@krishnags code needs to be on the DisplayMode of the button, but modified as below

If(
   Form1.Mode = FormMode.Edit,
   DisplayMode.Edit,
   DisplayMode.Disabled
)

 

View solution in original post

5 REPLIES 5
krishnags
Super User
Super User

@AA53 try this If(Form1.DisplayMode = DisplayMode.Edit,DisplayMode.Edit,Disabled)

View solution in original post

It does not work 😞

 

AA53_0-1598014630132.png

Any advice??

 

@AA53 try - validating  the Form Mode. 

Thank You,

 

Could you please elaborate more as I am newbiee in powerapps

 

Thank you

@AA53 ,

@krishnags code needs to be on the DisplayMode of the button, but modified as below

If(
   Form1.Mode = FormMode.Edit,
   DisplayMode.Edit,
   DisplayMode.Disabled
)

 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,299)