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 Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (2,311)