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 / 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard