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 / Autopopulate Label bas...
Power Apps
Unanswered

Autopopulate Label based on DataCardValue Selected Item

(0) ShareShare
ReportReport
Posted on by 12

Hi all,

 

 

From the simple picture below, I have a Form (red outline) that is connected to a SharePoint List. This Form has a DataCard field called "quarter lookup", which is a lookup field for values housed in another SharePoint List.

 

 

poweruser_21_1-1643334713215.png

 

 

I know they're not the same type of data, but is there a way I can autopopulate the Text Label (outside the Form) with the value shown in the quarter lookup (Q1 in this case)?

 

FYI, I was unsuccessful when I added any the following to the Text Property of the Label: <quarter_lookup_DataCard1.Selected>

<quarter_lookup_DataCard1.Selected.Value>

<DataCardValue1.Selected>

 

Many thanks,

 

 

Categories:
  • WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    Hi @poweruser_21 ,

    The correct one is (assuming that is the Combo Box name)

    quarter_lookup_DataCard1.Selected.Value

    Firstly, paste that in the same data card and see if it works. If so, there is possibly a current bug affecting this. What is the DefaultMode and the Item of the Form.

     

  • poweruser_21 Profile Picture
    12 on at

    Hi @WarrenBelz,

     

    Thanks for your response.

     

    That didn't work unfortunately. The DefaultMode of the Form is <Edit> and its Item Property is dependent on the selection of a ComboBox choice that lives outside the Form.

     

    For the current query, however, I was able to make the Text Property of the Label as a variable (_varqlookup), and then I set the quarter lookup Datacard's OnChange property to fill the Label:

    <Set(_varqlookup,DataCardValue153.Selected.Value)>

     

    I do not know if this is an extremely crude way of doing it, or whether I will run into issues in the future, but its doing what I need at the moment.

     

    P.S: From your response, may I know how you got the code in that box:

    poweruser_21_0-1643388308760.png

     

    Regards,

  • WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    @poweruser_21 ,

    I was simply supplying the code that should work based on your post - and yes, a Variable is a good workaround.

     

     

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

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard