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 / Selected.Value or Sele...
Power Apps
Unanswered

Selected.Value or Selected.Result not working (Form)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi!

 

I am trying to show different cards based on the choice made in a dropdown card. The dropdown is based on a Sharepoint list with a choices column, where multiple choices can be selected. I would like a new field to show for each choice, but if I use the .Selected.Value or .Selected.Result function in the "Visible" property of one of the datacards I get an error:

Nozz_0-1678283959877.png

 

The dropdown card has data type "Complex", I'm not sure if this makes a difference.

 

Does anyone know how to solve this? Or how to get my desired output?

Categories:
I have the same question (0)
  • RJM07 Profile Picture
    801 on at

    Try Selectedtext.Value or SelectedText.Result (Whichever is applicable)

  • mmollet Profile Picture
    3,187 on at

    So in general I avoid complex columns in my SP lists like the plague. They are harder to work with and complicate almost everything you use them in. I try to just code the 'choices' functionality into my app rather than use a choice column. For example if they can only create a new item in the SP from a single page in my app then I will just hardcode a dropdown to have ["option1","option2","option3",etc...] in my app and that means that those are the only 'choices' they have. Now I can be sure that my column in SP is still only one of the options I wanted it to be, however I can make that column type a string and working with strings is much easier. 

     

    When you want to multiselect this complicates my scenario and may force you to think outside the box a little. What I think is happening for you is that your combobox (dont think dropdowns can multiselect) is returning a table as the return type. This means that you cant just say .Value or .Result and expect a record or value from a record. Since you have a table as the return type you would have to specify which row/object you were referencing from that table before you used a dot operator to access its fields. 

     

    Table.Value may return [{object1},{object2},{object3},etc...}]

    What you are trying to do is say object.Value but what you are actually saying is the table/array.value ([].value) which Power Apps doesnt know what to do with as there could be multiple rows available in that table. Even if the table has only 1 row/object it will still return a table type btw. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you both @mmollet @RJM07 for your replies! I found out that I used the wrong reference, I referred to the DataCard and not the DataCardValue. 😅 Everything seems to work now.

     

    Thank you @mmollet for your thorough explanation, I will definitely keep this in mind.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard