cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AnthonyDo
Helper III
Helper III

Enable Icon to Displaymode.Edit while form is Displaymode.View

Hi guys,

 

I am trying to change a icon's displaymode to Edit while frmEditTraining is in View mode. The icon is in the duration_in_days datacard.

 

2021-08-17 15_05_24-Power Apps.png

I added the formula below on both the duration_in_days datacard and the icon displaymode property to change the displaymode to edit but it does not work.

2021-08-17 15_05_55-Power Apps.png

 

The icon would need to be in edit mode so i can collapse datacards like in the picture below.

 

2021-08-17 15_12_44-Power Apps.png

anyone knows a good workaround? The icon needs to be in the datacard/form for positioning/responsive design reasons

 

Kind Regards,

 

Anthony

1 ACCEPTED SOLUTION

Accepted Solutions

@AnthonyDo When the Form is in View Mode this will be applied to all the controls. So, If the icon is inside the form, the icon will also be in View Mode.

A workaround would be to put individual datacards in view mode rather than the whole form.

You can set a variable and use this variable to determine the display mode.

View solution in original post

5 REPLIES 5
Nogueira1306
Super User
Super User

Try this:

If( frmEditTraining.DisplayMode = View,

Edit, View)

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

hi @Nogueira1306 ,

 

same result

 

Kind regards,


Anthony

CNT
Super User
Super User

@AnthonyDo Try this,

If(
    frmEditTraining.Mode=FormMode.View,
    DisplayMode.Edit,
    DisplayMode.View
)

Hi @CNT ,

 

Still does not work, can anyone confirm if this is possible?

 

Kind regards,

 

Anthony

@AnthonyDo When the Form is in View Mode this will be applied to all the controls. So, If the icon is inside the form, the icon will also be in View Mode.

A workaround would be to put individual datacards in view mode rather than the whole form.

You can set a variable and use this variable to determine the display mode.

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,636)