web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to control DataCar...
Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by 63

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

Categories:
I have the same question (0)
  • Verified answer
    v-micsh-msft Profile Picture
    Microsoft Employee on at

    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 Power Platform Member Profile Picture
    Microsoft Employee on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 491

#2
WarrenBelz Profile Picture

WarrenBelz 407 Most Valuable Professional

#3
11manish Profile Picture

11manish 331

Last 30 days Overall leaderboard