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 / Fill-in combobox conne...
Power Apps
Unanswered

Fill-in combobox connected to a Sharepoint list

(0) ShareShare
ReportReport
Posted on by 6

Hello,

 

I'm trying to implement a combobox in an app connected to a Sharepoint list which has the option for users to either select an item or fill-in their own item. Saving is done using OnSave = SubmitForm(SharePointForm1) etc., no custom buttons as some solutions propose.

 

Solutions such as this one Manual Fill In Option For Combo Box 

do not work, as I get the following error:

8900tfgie9rioge_0-1671031777028.png

 

The following code produces the error on the image above.

Put this code in Update Property of the Card.  It will fit your scenario much better.  

If(
 !IsBlank(ComboBox1.Selected),
 ComboBox1.Selected.your_column_name,
 ComboBox1.SearchText
)

 

My question is how to create a combobox that allows user fill-in an app connected to a Sharepoint list (the app is made using Integrate --> PowerApps --> Customize forms).

Thanks for your help.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @8900tfgie9rioge ,

    Assuming you are writing back to a Choice field here

    {
     Value: 
     Coalesce(
     ComboBox1.SearchText, 
     ComboBox1.Selected.your_column_name
     )
    }

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • 8900tfgie9rioge Profile Picture
    6 on at

    Hello, @WarrenBelz, thanks for your reply.

     

    I'm sorry, I forgot that the code that works and that users accepted as a solution is from a Tweet linked in an answer to the question I linked to

     

    8900tfgie9rioge_0-1671108898698.png

     

    Code modified for my case:

    If(
    !IsBlank(DataCardValue20.Selected),
    DataCardValue20.Selected,
    {Value: DataCardValue20.SearchText}
    )

     

    The

    your_column_name

    part from my original question is not present in that Tweet.

     

    When I use your code on the Update property of a specific DataCard

    {
     Value: 
     Coalesce(
     DataCardValue20.SearchText, 
     DataCardValue20.Selected.your_column_name
     )
    }

    I get an error despite trying multiple ways to reference a column. "Column name", 'Column name' and Column_name all produce an error. If I drop the your_column_name and use DataCardValue20.Selected.Value, the code produces no errors, but doesn't work.

     

    Thanks again for all your help so far.

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @8900tfgie9rioge ,
    I actually use the code myself (just tested one here on a prod app) and it works fine. 'your_column_name' was from your post and I assumed you knew this was simply a place marker for the actual output of the Combo Box. If this is a choice field you are referencing in the Items

    Choices(listname,fieldname)

    and are writing back to the same field, then you need

    {
     Value: 
     Coalesce(
     ComboBox1.SearchText, 
     ComboBox1.Selected.Value
     )
    }

    in the Update of the data card. This is simply "shorthand" for

    {
     Value: 
     If(
     !IsBlank(ComboBox1.SearchText),
     ComboBox1.SearchText, 
     ComboBox1.Selected.Value
     )
    }

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard