cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sdedic
Helper I
Helper I

Auto populate field inside the form

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.

1 ACCEPTED SOLUTION

Accepted Solutions
PG_WorXz10
Community Champion
Community Champion

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

 

 

 

 

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

View solution in original post

4 REPLIES 4
PG_WorXz10
Community Champion
Community Champion

Hi @sdedic ,

 

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

 

 

 

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

Hi @PG_WorXz10,

 

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

 

PG_WorXz10
Community Champion
Community Champion

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

 

 

 

 

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

Hi @PG_WorXz10,

 

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 @PG_WorXz10!

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,032)