Hi, I have a form on my App where one of the fields to be filled out is the name of the person who filled it out. Currently the user needs to search for his own name in the DataCardValue to complete the registration. However, I would like to have this DataCardValue filled in automatically and that it was not possible to change it. I tried to use the "User (). FullName" function for this but it is not working.
Can anybody help me?
Solved! Go to Solution.
To configure this, you can set the Default property of the datacard to below expression:
{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims:"i:0#.f|membership|" & User().Email, Department:"", DisplayName:User().FullName, Email:User().Email, JobTitle:"", Picture:""
}
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Hi @santpaiva
Did you put the User().FullName as the Default property of the control in the card? If you don't want the user to change it, make the display mode of the card containing the control Disabled.
If you used the User().FullName and it did not work, then what was the result, did you get an error or Blank DataCradValue? if you have those spaces or had "" around it the refer to the formula stated by @Drrickryp
Also are all your users having user account or you are just using a login where some of the users dont have account?
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
To configure this, you can set the Default property of the datacard to below expression:
{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims:"i:0#.f|membership|" & User().Email, Department:"", DisplayName:User().FullName, Email:User().Email, JobTitle:"", Picture:""
}
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Thank you, it's helped me too.
User | Count |
---|---|
262 | |
110 | |
89 | |
54 | |
44 |