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 / Setting default text d...
Power Apps
Answered

Setting default text datacard in form from another data source

(0) ShareShare
ReportReport
Posted on by 45

Hey all.

 

I am trying to set a default value for a text datacard that's from another data source. For example. The form where the datacard lives submits to Timekeeping datasource/list. However, I want to pull the user's "Department" from another data source called Employees. I have added both data sources. Any help would be greatly appreciated. 

 

Thanks

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Dhubach1 

    Are you planning to not let the user make changes to that value in the form?  i.e. you just want it to always have the looked up value?

     

    If so, then just set the Update property of your Datacard to a lookup.

    Ex:  LookUp(<yourOtherListHere>, <yourLookupCriteriaHere>, <yourLookedUpColumnHere>)

     

    If you want to allow them to edit it, then you should apply the above to the control in the datacard that contains the value.

     

    I hope this is helpful for you.

  • Dhubach1 Profile Picture
    45 on at

    Thanks for the response and looking into this now. The only problem is there are multiple departments that I am trying to look up from the other column.

     

    I have a form1 that submits work-from-home requests to spo list1. I want to be able to pull the employee's "department" column from spo list 2 and fill it in the datacard 'Department' for form1 automatically if possible.

     

    Hope this makes sense thanks again

  • Dhubach1 Profile Picture
    45 on at

    I am trying LookUp('List2', department = User()?)   Sorry im a noob <--- User would be the logged in user to the system/App. 

     

    Thanks!!

  • Dhubach1 Profile Picture
    45 on at

    List 2 has two columns that i need to match with the signed in user. Emplyees(peoplepicker) and Directorate (choice). @RandyHayes 

     

    Thanks much

  • Verified answer
    Dhubach1 Profile Picture
    45 on at

    Got it. Thanks again so much for the help and sending me in the right direction. For anyone that might come across this the formula in the From1 Datacard TextInput - Default=

     

    LookUp('List2', 'employee'.email = User().Email).Department.Value

     

    Thanks again @RandyHayes 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard