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

How to control DataCard by unlocking and locking through Audience/user

Hi I can able to control DataCards by audience/user on visible parameter its means when the user is not part of these syntax,

If(OR(User().Email="test.user@contosso.com", User().Email="test.user1@contosso.com" ),true,(IF(OR(User().Email="test.user2@contosso.com", User().Email="test.user3@contosso.com"), true,IF(User().Email="test.user4@contosso.com", true,false))))

then the user will not able to see this DataCard.  And it works fine.  now the problem is how to control the DataCards lock and unlock  or the DisplayMode.disable by audience/user.  Thanks!

 

Regards,

Ian

1 ACCEPTED SOLUTION

Accepted Solutions
v-micsh-msft
Community Support
Community Support

Hi @IC,

 

There is no way to manage the Lock and Unlock through formulas.

If one DataCard has been unLocked, then this DataCard need to be deleted and then select again from the fields list to have the Lock status back on it.

You may take a look at the following article for more details:

Card controls in PowerApps

 

Further, for the DisplayMode property, please check:

"

DisplayMode – Values can be Edit, View, or Disabled. Configures whether the control allows user input (Edit), only displays data (View) or is disabled (Disabled). In View mode, input controls such as Text inputDrop downDate Picker will only display the text value and will not render any interactive elements or decorations. This makes them suitable to be displayed in Forms or as readable output.

"

For more details, please see:

Core properties in PowerApps

 

For the formulas, you may just switch the 'true', 'false' value to 

DisplayMode.View,

DisplayMode.Edit

or 

DisplayMode.Disabled

 

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-micsh-msft
Community Support
Community Support

Hi @IC,

 

There is no way to manage the Lock and Unlock through formulas.

If one DataCard has been unLocked, then this DataCard need to be deleted and then select again from the fields list to have the Lock status back on it.

You may take a look at the following article for more details:

Card controls in PowerApps

 

Further, for the DisplayMode property, please check:

"

DisplayMode – Values can be Edit, View, or Disabled. Configures whether the control allows user input (Edit), only displays data (View) or is disabled (Disabled). In View mode, input controls such as Text inputDrop downDate Picker will only display the text value and will not render any interactive elements or decorations. This makes them suitable to be displayed in Forms or as readable output.

"

For more details, please see:

Core properties in PowerApps

 

For the formulas, you may just switch the 'true', 'false' value to 

DisplayMode.View,

DisplayMode.Edit

or 

DisplayMode.Disabled

 

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

I do not understand why it is not allowed to put the editforn in view mode as it is designed and that when you put the form in view mode it shows the ugly diplayform that is imposible to pretify, even insert lines/icons/images into cards is impossible, and modifying fonts and colors and position is a time spent problem when you have to do it on 50 fileds cards.

The gallery is very good but the datacard model is really dispaonting in terms of possible customisation, the app is received by user then as very amateur work.

It should be possible to define new model/templates for datacards as it is for Gallery.

Best regards

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,199)