cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
cooltechie
Level: Powered On

How to make an auto populated field read only

Hi, 

 

I am customizing a sharePoint list form and I auto-populate two Person fields on the form with current logged in user and the manager of the current logged in user. Since I am auto-populating these values, I do not want the user to edit these fields. How can I make these fields read-only for end users ? I looked for Disabled property and I can't find the property.

 

Please advise? 

1 ACCEPTED SOLUTION

Accepted Solutions
KOM_4410
Level 8

Re: How to make an auto populated field read only

On the PowerApps form, select DataCardValue of the cards you want to have as View only, go to properties, Display Mode and change to "View". You can also find it on the left side options when selecting the field you want to change (See image).

 

image.png

View solution in original post

2 REPLIES 2
KOM_4410
Level 8

Re: How to make an auto populated field read only

On the PowerApps form, select DataCardValue of the cards you want to have as View only, go to properties, Display Mode and change to "View". You can also find it on the left side options when selecting the field you want to change (See image).

 

image.png

View solution in original post

Community Support Team
Community Support Team

Re: How to make an auto populated field read only

Hi @cooltechie,

Do you want to make the two Person fields within your Edit form read only?

I have made a test on my side, please take a try with the following workaround:5.JPG

Unlock the corresponding Data card which contains the Person field, then set the DisplayMode property of the Combo Box control to following:

DisplayMode.Disabled

Set the DefaultSelectedItems property of the Combo Box control to following:

 {
     '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
      Claims:"i:0#.f|membership|" & Lower(User().Email),
      DisplayName: User().FullName,
      Email: User().Email
 }

Best regards,

Kris

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

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 202 members 3,306 guests
Please welcome our newest community members: