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 / help with sharepoint p...
Power Apps
Answered

help with sharepoint person field, powerapps user field display name

(0) ShareShare
ReportReport
Posted on by 74

I need to disable a set of fields based upon the name listed in the sharepoint personfield. I want to use the user field but the sharepoint fields display name is lastname, firstname. user fullname is firstname lastname. how do i split the sharepoint name then where do i put these steps? 

I am not sure where to start with using the split and where to put it.

 

I set the displaymode on the field that i need to be view only to: if(user().fullname, edit, view)

Categories:
I have the same question (0)
  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @tscott07 

    If you are using the form for this requirement, then you can use like below.
    for this requirement CLick on Advance in Property tab and Unlock the Datacard First.

    VijayTailor_0-1601927949543.png

     

    Split the Name Like below - 

    First(Split(ThisItem.ApproverName.DisplayName," ").Result).Result //For First Name

    VijayTailor_0-1601928236452.png

    Split the Last Name - Like below - 

    Last(Split(ThisItem.ApproverName.DisplayName," ").Result).Result //For First Name

    VijayTailor_1-1601928292858.png

     

    Thanks,

    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay

     

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @tscott07 ,

    Do you want to transfer person field display name from "firstname lastname" to "lastname, firstname"?

    If you want to directly use person field in one item, you could try this formula:

    Last(Split(ThisItem.personfield.DisplayName," ")).Result&","&
    //lastname,
    First(Split(ThisItem.personfield.DisplayName," ")).Result
    //firstname

    If you want to select person for this field in combo box , display the selected value as "lastname, firstname", you could try this formula:

    Last(Split(personfieldcomboboxname.Selected.DisplayName," ")).Result&","&
    //lastname,
    First(Split(personfieldcomboboxname.Selected.DisplayName," ")).Result
    //firstname

     

     

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard