cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Convert dropdown list from sharepoint to string

Hello everyone,

 

I have a DataCardValue which datatype is "Complex" a.k.a a dropdown list so the datacard has multiple values, and this isn't a allowed type only: Text, Number, Booleans and OptionSetValues are allowed

datatype.png
What is the easiest way to convert all the choices from the dropdown list to string?

 

Kind Regards

Jakob Dahl

 

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Convert dropdown list from sharepoint to string

Hi @JakobDahl ,

 

To convert the value of a choice filed into text, please try if the following way will work for you.

Review Status is of type Choice in SharePoint list, unlock the Review Status data card, then add a Label control within the card, entering the following code in the Text property of the Lable:

If(DataCardValue17.Selected.Value="aa","aa",If(DataCardValue17.Selected.Value="bb","bb"))

1.PNG

Hope it could be a reference for you.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper I
Helper I

Re: Convert dropdown list from sharepoint to string

I almost thought this solved my problem, but the thing is that my"choice filled" DataCardValue has multiple choices selected, so i want to list all the "SelectedItems" in one text label. 

How would i go about doing this? Smiley Very Happy

Kind Regards

Jakob Dahl

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020 Winner Announced

Check it out!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (13,692)