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 auto pick the t...
Power Apps
Answered

how to auto pick the title and dept when input the person name??

(0) ShareShare
ReportReport
Posted on by 1,994

HI

 

How to set to auto pick the user title and department when the name box is enter??

 

Designation and department are both singletext line  

 

Thanks

bbsin_0-1625214189156.png

 

Categories:
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    a18.jpg

  • bbsin Profile Picture
    1,994 on at

    @zmansuri 

     

    Hi Can I check the name is not working.. it's a Person Group field

    bbsin_0-1625223488128.png

     

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Concat(ThisItem.AssignTo.DisplayName,DisplayName)

  • bbsin Profile Picture
    1,994 on at

    Hi @zmansuri 

     

    There's error, what is wrong on my end? THx

    bbsin_0-1625227561915.png

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @bbsin

    Do you want to display the corresponding JobTitle and Department to the person name?

    Could you please share a bit more about the scenario?

    Actually, the PersonName is a Person column, so you should refer to PersonName if you want to display the corresponding JobTitle and Department.

    Set the Text property of the Label corresponding to the Designation and Department column as below:

    ThisItem.PersonName.JobTitle
    ThisItem.PersonName.Department

     

  • bbsin Profile Picture
    1,994 on at

    Hi @v-qiaqi-msft 

     

    Yes I have a persongroup for Name1 but why is the form item for title a choices when I add the datacard from SP?

     

    Do I put inside the Items -as Thisitem.Datacard1.JobTitle?  it has error

    bbsin_0-1625710780067.png

     

    1.PNG

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @bbsin,

    Could you please clarify more clearly that you have a Form rather than a Gallery? 

    In addition, could you please check our official doc to learn more about the form generated based on the SharePoint list, then you should know that a Combo Box will be automatically generated based on a Choice or Person

    Why you change your column type, I could not afford to provide different solutions every time you changed your column type. 

    vqiaqimsft_0-1625712027924.png

    Please do keep your Text type for Designation and Department column, and keep the Person type for your person name column. And then create a form based on the SP list, you could get a form with a Combo Box for the Person Name and two TextInputs for the Designation and Department.

    Just set the Default property pf the TextInput as below:

    ComboBox1.Selected.JobTitle
    ComboBox1.Selected.Department

    Note that Combo Box represents the control within your form, replace it with yours.

  • bbsin Profile Picture
    1,994 on at

    Hi @v-qiaqi-msft 

     

    Thank you, sorry I changed the field as I am not sure which will work.  🙂

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard