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 / How to trigger text co...
Power Apps
Answered

How to trigger text control lookup autofill? non-test property

(0) ShareShare
ReportReport
Posted on by 221

I have the below function that is throwing up an error I do not understand how to solve.

SetProperty(DataCardValue20_4.Text, LookUp(REQLINES,ITEM=Value(DataCardValue30_4.Text), DESCRIPTION))

 

Ginko_0-1653943470029.png

 

The intent of this function is to fill OnSelect of a button the DataCardValue20_4.text with DESCRIPTION from REQLINES data source if DataCardValue30_4.text matches an ITEM number from the same REQLINES table. Basically trying to create an autofill button for my form if the data already resides on REQLINES table, where ITEM is my comparison value to create the data match.

 

What function should I be using instead of SetProperty, or others adjustments to enable this lookup & autofill?

 

Thanks in advance for any advice!

Categories:
I have the same question (0)
  • Verified answer
    jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    Hi,

     

    I am not a user of forms, but I would use a label and its Default property.

     

    Something like a button with a OnSelect of Set(varMyLookUp, LookUp(DataSource, Record)) and the label's Default would just be varMyLookUp.AnyField

     

    Regards.

  • Ginko Profile Picture
    221 on at

    This works, so much easier than expected too! My below function also works in real-time I just had the ITEM number used in testing typed wrong haha

    If(EditForm1_5.Mode=FormMode.New,LookUp(REQLINES,ITEM=DataCardValue30_4.Text,DESCRIPTION))

    Thank you! 

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
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard