cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

How to set the Controls to Edit mode when clicking a button

Hi @PowerAddict  and other experts, 

 

I have following fields in my screen and I have set them to View mode. I want them to be in edit mode when I press the + icon

 

Capture.PNG

 

Date is the DatePicker2

Customer name is the ComboBox4

Amount is the TextInput2

Invoice number is the TextInput2_2

 

I am trying hard to get it done using Reset.....but in vain

 

Please help

 

Osmand

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: How to set the Controls to Edit mode when clicking a button

Hi!

 

Have your + icon's OnSelect do:
Set(EditModeVariable, !EditModeVariable)


Then have the DisplayMode for those items set not to DisplayMode.View, but rather to:

If(EditModeVariable,
   DisplayMode.Edit,
   DisplayMode.View
)

So by default, these should now be in View mode, and you can have anything else change that EditModeVariable to turn Edit Mode on or off.

 

Could you try that and let me know how you get on with that?

 

Thanks!

Sancho




Don't forget to 'Mark as Solution' if a post answered your question and always 'Thumbs Up' the posts you like or helped you!

View solution in original post

3 REPLIES 3

Re: How to set the Controls to Edit mode when clicking a button

@mdevaney

@PowerAddict 

 

 will you be able to help me out here ?

 

Osmand

Highlighted
Super User
Super User

Re: How to set the Controls to Edit mode when clicking a button

Hi!

 

Have your + icon's OnSelect do:
Set(EditModeVariable, !EditModeVariable)


Then have the DisplayMode for those items set not to DisplayMode.View, but rather to:

If(EditModeVariable,
   DisplayMode.Edit,
   DisplayMode.View
)

So by default, these should now be in View mode, and you can have anything else change that EditModeVariable to turn Edit Mode on or off.

 

Could you try that and let me know how you get on with that?

 

Thanks!

Sancho




Don't forget to 'Mark as Solution' if a post answered your question and always 'Thumbs Up' the posts you like or helped you!

View solution in original post

PowerAddict
Level 10

Re: How to set the Controls to Edit mode when clicking a button

@OdmandFernando let us know if you are still facing this issue.

Thanks,
Hardit Bhatia
https://thepoweraddict.com

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,609)