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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Auto populate field in...
Power Apps
Unanswered

Auto populate field inside the form

(0) ShareShare
ReportReport
Posted on by 353

Hi,

 

I am trying to auto-populate a field based on the value user selects in another field inside the same form. I am using two data sources, both SharePoint lists.

 

First SP list contains information about employees and has a lookup field to the other SP list which contains information about managers.

Manager is the lookup field in the Employees list.

 

Employees SP list:

sdedic_0-1658909846260.png

 

Managers SP list:

sdedic_1-1658909990107.png

 

So, what I am trying to accomplish is to auto populate Service Line field inside the form when a user selects a manager from the dropdown list. Both fields are inside the form.

sdedic_2-1658910236844.png

 

 

Btw, I am able to achieve this when using independet fields outside the form, but struggling how to do that when everything has to be done inside the same form.

sdedic_3-1658910963571.pngsdedic_4-1658910991909.png

 

Ty.

Categories:
I have the same question (0)
  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @sdedic ,

     

    Did you already tried adding the formula you used in the Default property of Manager Service Line ? 

     

     

     

  • ar87 Profile Picture
    353 on at

    Hi @PriyankaGeethik,

     

    yes, and unfortunatelly it doesn't work. As you can see from the screenshot below it allows me only to select Manager's ID or Value, and not Service Line as it was the case outside the form.

    sdedic_0-1658914454281.png

     

  • Verified answer
    PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @sdedic ,

     

    If not tried already could you please try lookup to get the service line value. Please try the below formula its not prefect for copy paste but you have update the values according to your form values. 

     

    Lookup(ManagersSPList, Manager=YourcomoboBox.Selected.Value).ServiceLine

     

     

     

     

  • ar87 Profile Picture
    353 on at

    Hi @PriyankaGeethik,

     

    I've tried with the LookUp already, in the same maner you explained, but also with no success. It reports 'Expected Record value' error.

    sdedic_0-1658921939167.png

     

    Let me know if any other info could help in realizing this.

    Thanks!

     

    EDIT:

    Hm, not sure why, but when I integrated the LookUp part into If statement, the formula worked!

    If(IsBlank(cmbSelectManager.Selected), " ", LookUp(Managers, Manager = cmbSelectManager.Selected.Value).'Service Line')

    sdedic_3-1658923368134.png

     

    Thank you once again @PriyankaGeethik!

  • shivasai Profile Picture
    2 on at

    Hii @sdedic 

    I tried with if condition also but not working

     

    shivasai_0-1688973597869.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard