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 / Using buttons to popul...
Power Apps
Unanswered

Using buttons to populate fields from a SharePoint List

(0) ShareShare
ReportReport
Posted on by 6

I've got a bit of a complex one here:

 

I have a set of input fields (Text Inputs and Drop-Down Menus) that are assigned columns in a SharePoint list as their 'DataField'. The user enters the data (for example their email address) into the fields and when the form submits a new entry is written to the SharePoint list (this all works fine).

 

What I want to be able to do is have the user enter their email and, if they have submitted the form before (i.e. if their email is already in the relevant SharePoint list colum), have the option to click a button and prepopulate the other fields with the data from their last entry (which would be the row with the highest ID containing their email).

 

Any suggestions? Thanks for any and all help.

Categories:
  • hpkeong Profile Picture
    2,944 on at

    Hi

     

    May I suggest:

     

    -When the user enter their email into:

    TextInput1.Text = for entering email

     

    Button (which you wish to click, to be visible using):

    Button1.Visible = !IsBlank(First(Filter(DS, TextInput1.Text = UserEmail)))

     

    Then If the email is already exists in the DS, the button will be Visible (True), and you can

    Button1.OnSelect = to populate your data based on the TextInput1.Text (Email address).

     

    I hope this will give you a hint.

    TQ

  • KeyboardTsar Profile Picture
    6 on at

    Thanks for your response hpkeong.

     

    I was able to populate the desired fields using the LookUp function and context variables. Your button trick was very helpful.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard