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 / setting a choice value...
Power Apps
Answered

setting a choice value based off a label

(0) ShareShare
ReportReport
Posted on by 181

Hey guys, below is my current design:

Amber_L_1-1624418123825.png

 

Green section is a View Form, Pink section is a Gallery, Blue section is a New Form.

Green Section is attached to data source 1.

Pink and Blue section is attached to data source 2

I have a lookup field in data source 2 that links to the ID of items in data source 1

 

Essentially, the blue and pink section works as a comment system and these 'comments' are stored in a separate list but referenced via the ID of the item from data source 1.

 

The send icon will submit the form in the blue section. I am trying to set the default selected item for the blue section to be the ID from the green section however cant seem to get it to work.

 

I tried the following:

on the Default Selected Item property = [DataCardValue14.Text]

or [Text(DataCardValue14)]

 

with DataCardValue14 being the label that shows the ID for the green section (however I have set the visible property to false)

 

This wont register as a value when submitted to the list?

Amber_L_2-1624418602058.png

 

Could I please have some help? Im not sure why it isnt working.

 

Cheers, Amber

 

 

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

    Hi @Amber_L ,

     

    I did a demo for you.

    1\ This is my list LIST136. It is similar to your data source 1.

    vxiaochenmsft_0-1624428289756.png

     

    2\ This is my list LIST137. It is similar to your data source 2.

    vxiaochenmsft_1-1624428622896.png

     

    vxiaochenmsft_2-1624428982675.png

    vxiaochenmsft_3-1624429083287.png

    vxiaochenmsft_4-1624429134234.png

    Set the datacard's Update property to:

    {Id:DataCardValue2.Text}

    vxiaochenmsft_5-1624429189779.png

    Set the datacard's Visible property to:

    false

     

    3\ The result is as follows:

    vxiaochenmsft_6-1624429253943.png

    vxiaochenmsft_7-1624429268942.png

     

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

     

     

     

     

     

     

     

     

  • Amber_L Profile Picture
    181 on at

    hey there, I have tried exactly what you have done and it still wont pull that value through? is there anything else i may be missing?

  • Verified answer
    Amber_L Profile Picture
    181 on at

    I have managed to get this to work by just removing the lookup column and setting it as a number column and setting the default value to be that of the ID from data source 1. This works for what I am needing so will use this instead. Thanks for your help anyway!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 426

#2
WarrenBelz Profile Picture

WarrenBelz 381 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard