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 / Load default value for...
Power Apps
Answered

Load default value for textbox from another Sharepoint Lists

(1) ShareShare
ReportReport
Posted on by 37

How to load the default value for Control text on the Form from another SharePoint list every time the form is opened.

 

I create a travel Request form (DataSource: SharePoint lists:TravelRequestLog) with textbox Travel Phone Number (txtUserPhone). I want the default value of txtUserPhone to be loaded automatically from the PhoneNumber column in the word DataSource: SharePoint lists: UserDefaultInfo. How to set like that?
Really appreciate your help and Kudos for the advice.

Rspv_0-1720440919065.png

 

Categories:
I have the same question (0)
  • Verified answer
    Muzammil_069506 Profile Picture
    292 Moderator on at

    Hi @Rspv 

     

     Here's how you can set a default value that updates every time your form loads from a different list:

    1. **Unlock the Data Card**: In the PowerApps studio, select the form and then the data card you want to modify. In the properties pane on the right, click on the lock icon to unlock the data card.

    2. **Modify the Default Property**: Select the TextInput control inside the data card. In the properties pane, find the 'Default' property.

    3. **Write the Lookup Function**: In the 'Default' property, write the following formula:

     

    Lookup(UserDefaultInfo, Email = User().Email).PhoneNumber

     

    This formula will look up the 'UserDefaultInfo' list (or data source), find the record where the 'Email' field matches the current user's email, and return the 'PhoneNumber' field from that record.

    Please note that 'UserDefaultInfo', 'Email', and 'PhoneNumber' should be replaced with the actual names of your data source, email field, and phone number field, respectively.

    Also, make sure that the user has the necessary permissions to read the 'UserDefaultInfo' list.

  • Rspv Profile Picture
    37 on at

    @Muzammil_069506 @@ Thank you for your advice. It works well

    I did the same for combobox by set defaultSelectedItems = Lookup(UserDefaultInfo, Email = User().Email).Location (location is Choice type)
    But it didn't work. Could you please help? 

  • Muzammil_069506 Profile Picture
    292 Moderator on at

    @Rspv  please place the formula within your Square Braces []

  • Rspv Profile Picture
    37 on at

    HI @Muzammil_069506 It doesn't work

    Rspv_0-1720518190457.png

     

  • Verified answer
    Muzammil_069506 Profile Picture
    292 Moderator on at

    Hi @Rspv  the entire thing in  [] please defaultselected of combobox expects you to give your value in table format

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard