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 / adding a custom item t...
Power Apps
Answered

adding a custom item to a combo box

(1) ShareShare
ReportReport
Posted on by 33

Hello Power Apps Community,

I'm stuck with this already a few days and I couldn't find a solution on the existing topics.

I have set-up a SharePoint library, with a 'Choice'-column; called 'Content-section' (note, it's a required field).

I would like to use Power Apps as input form; however PowerApps don't allow me to put other data into the Combo box. I only have the possibility to select the current options (predefined).

Capture.PNG

 

Is there an option to change the behavior of the Combo box so it accepts custom entries from the user or is there an alternative to accomplish the same scenario? Thank you for the assistance and cooperation. Have a nice day.

Categories:
I have the same question (4)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi@bartvaneynde,

    Based on the issue that you mentioned, do you want to enter custom data within the ComboBox?

    Could you please share a bit more about your scenario, do you want to enter custom data or add custom data into the Choice column?

    >>If you just want to enter custom data within the ComboBox, you can turn on the "Allow searching" on. Further, set the Update property of the corresponding DataCard as below:

     

    If(IsBlank(ComboBox1.Selected.Value),ComboBox1.SearchText,ComboBox1.Selected.Value)

     

    >>If you want to add custom data into the Choice column, you should add a Button and set the OnSelect property as below:

     

    If(
     !IsBlank(ComboBox1.Selected),
     Patch(
     ListData,
     Defaults(ListData),
     {'Content-section': {Value: ComboBox1.SearchText}}
     )
    )

     

    Best Regards,

    Qi

  • PatrickRender Profile Picture
    6 on at

    Here is an alternative solution to entering custom data within the ComboBox, set the Update Property of the DataCard to:

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

    You will need to switch 'ComboBox1' to the name of your ComboBox DataCardValue name, and 'Value' to the appropriate name of your Record field (I found this by copying the SearchField used for the ComboBox)

     

    This alternate solution worked for me because my ComboBox required a Record value and ComboBox1.SearchText returns a Text value, throwing the error : 'Expected Record Value' in the Update Property

  • MS-13051438-0 Profile Picture
    30 on at

    What if we have two combo boxes in the same data card and we want to get the custom user inputs from both of them? The code below doesn't work for me.
    If(IsBlank(ComboBox1.Selected), { Value: ComboBox1.SearchText }, ComboBox1.Selected);
    If(IsBlank(ComboBox2.Selected), { Value: ComboBox2.SearchText }, ComboBox2.Selected)

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