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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Display SP multi-selec...
Power Apps
Answered

Display SP multi-select option field as text

(0) ShareShare
ReportReport
Posted on by 189

I have a canvas app where a user will enter some details that gets stored on a SP list, there are a few steps to it but at the end of the process there is a text agreement that people have to click accept on, the agreement contains some some of the fields the user has filled out before.  

There is a multi select field called "years" where they would select a couple of years, if the user selected "2001,2006,2009" i would want the text to display;

"Years Selected = 2001,2006,2009 ...."

 

This is what i'm trying but getting an error;

"Years Selected = " & gallery1.Selected.years.Value & "  and more text...."

 

Error;

CiaranCampbell_1-1661784606947.png

 

 

Categories:
I have the same question (0)
  • MVP-Phipps Profile Picture
    3,508 Super User 2024 Season 1 on at

    Have you tried wrapping the Value in Text() or after value are there any properties you can select value.displayname for example...

  • WiZey Profile Picture
    3,023 Moderator on at

    Hello @CiaranCampbell ,

     

    A multi-selection imply the use of a table, which is a collection of values and not a single exploitable value.

     

    I'm not sure if you're using a combo box or a list box, but both should work the same as they return a table if you enable multi-selection.

     

    I suggest using "Concat()" which can concatenate multiple value from a table.

     

    https://docs.microsoft.com/en-us/power-platform/power-fx/reference/function-concatenate

     

    "Years Selected = " & Concat(gallery1.Selected.years,Value) & " and more text...."

     

    Can you try this code and see how it goes?

  • senna Profile Picture
    189 on at

    @phipps0218 Thanks for replying, i had tried but nothing will display after "value.", tried wrapping in Text(), no luck either.  I had hopped Concat() was the answer but cannot get that to work either

  • MVP-Phipps Profile Picture
    3,508 Super User 2024 Season 1 on at

    Can I please see the entire formula?

  • Verified answer
    MVP-Phipps Profile Picture
    3,508 Super User 2024 Season 1 on at

    You need to use concat like this:

    Concat(Gallery1.SelectedItems, years, "deliminator"

  • senna Profile Picture
    189 on at

    Thank you @phipps0218 that solved it, here is the full working concat for anyone else in the future

     

    Concat(gallery1.Selected.years,Value, ", ")

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard