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 / Multi select choice co...
Power Apps
Answered

Multi select choice column with custom text

(0) ShareShare
ReportReport
Posted on by 197

Hi all,

 

I have a very simple question. I have a multi selected choice column and want to use custom text input.

The problem, i can input a custom text but not combine with the standard values.

 

 

If(Not IsBlank(DataCardValue6.SelectedItems); DataCardValue6.SelectedItems;{Value: DataCardValue6.SearchText; '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"})

 

I'm sure my code is fine. I can fill in one custom text value but can't combine it with my standard values. 

 

Here is my source for the code https://powerusers.microsoft.com/t5/Power-Apps-Ideas/SharePoint-Choice-Fill-in-option/idi-p/83218#comments 

 

Doenst anyone has the solution?

Categories:
I have the same question (0)
  • JayMagness Profile Picture
    1,663 on at

    Hi,

     

    I personally do things like this in SharePoint. I create a calculated field in the SharePoint table and do all field combinations there.

     

    Here is an example of a SharePoint calculation that renders the year in different order to help with unique codes every time off the created field. 

     

    =RIGHT(YEAR(Created),2)&"0"&(MONTH(Created))&"0"&(DAY(Created))

     

    If you want you can contact me also jay@research-nest.com

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @WackdeMack ,

    Please try this:

    Modify the Submit button. OnSelect property:

    ClearCollect(Col1,DataCardValue6.SelectedItems,{Value:DataCardValue6.SearchText});
    ClearCollect(Col2,AddColumns(Col1,"'@odata.type'","#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"));
    SubmitForm(FormName)

    Modify the Update property:

    If(IsBlank(First(DataCardValue6.SelectedItems).Value);Table({Value: DataCardValue6.SearchText; '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"}); Col2)

    Hope this helps.

    Sik

     

  • WackdeMack Profile Picture
    197 on at

    I use a PowerApp Form instead of an app but i can make an Submit button 🙂

    After the first line, my code doenst work anymore, the first line looks fine:

     

    ClearCollect(Col1;DataCardValue6.SelectedItems;{Value: DataCardValue6.SearchText});

    But after this, PowerApps doenst work anymore, this is the code:

    ClearCollect(Col1,DataCardValue6.SelectedItems,{Value:DataCardValue6.SearchText});
    ClearCollect(Col2,AddColumns(Col1,"'@odata.type'","#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"));
    SubmitForm(FormName)

     PowerApps.png

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @WackdeMack ,

     

    The codes works well on my side.

    Snipaste_2020-06-18_10-39-12.png

    Snipaste_2020-06-18_10-39-44.png

    Could you please try this? I found the Col2 is not necessary.

    1. Modify the OnSave property:

    ClearCollect(MyCol;DataCardValue6.SelectedItems;{Value:DataCardValue6.SearchText});;
    SubmitForm(FormName)

    2. Modify the Update property:

    If(IsBlank(First(DataCardValue6.SelectedItems).Value);Table({Value: DataCardValue6.SearchText; '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"}); MyCol)

    Hope this helps.
    Sik

     

  • WackdeMack Profile Picture
    197 on at

    Hi @v-siky-msft 

     

    I have a very strange error with the solution. When i fill in my PowerApp Form, i get an error when i just select of of my choice. I can click again, and then the item is save. When i just use a custom value, i got no error, doest that make sense?

    Can you reproduce this?

    Onsave:

     

     

    ClearCollect(
     MyCol;
     DataCardValue6.SelectedItems;
     {Value: DataCardValue6.SearchText}
    );;
    SubmitForm(SharePointForm1)

     

     

    Update:

     

    If(
     IsBlank(First(DataCardValue6.SelectedItems).Value);
     Table(
     {
     Value: DataCardValue6.SearchText;
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"
     }
     );
     MyCol
    )

     

    Edit: Fixed with, the column was required in SharePoint. I changed that and now is everything is fine. 

     

  • Voltron Profile Picture
    67 on at

    hi! similar problem Please explain which column you are talking about. I get an error after a time. I can't figure out what the reason is.

  • Voltron Profile Picture
    67 on at

    2021-09-23 10_33_12-Power Apps.png

    why creating a collection generates an empty field.
    this formula creates an empty value and an error occurs

    ClearCollect(
     MyCol;
     DataCardValue6.SelectedItems;
     {Value: DataCardValue6.SearchText}
    );;
    SubmitForm(SharePointForm1)
  • Voltron Profile Picture
    67 on at

    could you tell me?

  • Voltron Profile Picture
    67 on at

    if it would be useful for someone to add filtering to exclude empty values in the collection

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
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard