web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to auto populate f...
Power Apps
Answered

How to auto populate field in form with an ID and a Value

(0) ShareShare
ReportReport
Posted on by 129

Hi,

 

I need to auto populate a field in a form. I use 2 lists, one with the field in Lookup and the other with the field in Text. I can have the same content in my list several times. When I use the list where the field is in Lookup, I need to have the right content and I would have thought of using my line ID. How can I do this?

 

I'd like to point out that I'm already filtering my row with a component that only retrieves the field content.

 

Here's the code I use:

Filter(Choices([@'IX-LigneTache'].Commande); Value = ComboBoxCde.Selected.Title)

 

Thanks,

Tom Victor 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @TomVictor ,

     

    Please try below method:

    Items:

    Choices([@'IX-LigneTache'].Commande)

     

    DefaultSelectedItems:

    LookUp(Choices([@'IX-LigneTache'].Commande); Value = ComboBoxCde.Selected.Title)

     

    Best regards,

  • CU22100725-0 Profile Picture
    129 on at

    Hi @v-jefferni ,

     

    Thanks for your help, I tried your methode and it doesn't seem working. If I try to use a content with the same text, I still get only one and not the other.

     

    Regards,

    Tom Victor

  • Verified answer
    CU22100725-0 Profile Picture
    129 on at

    I finally find a solution so here is the code I used to do that :

    Filter(Choices([@'IX-LigneTache'].Commande); Value = ComboBoxCde.Selected.Title && Id = Value(LabelIdCde.Text))

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 248 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 209 Super User 2026 Season 1

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard