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 / Manually add item to C...
Power Apps
Answered

Manually add item to Combo Box

(0) ShareShare
ReportReport
Posted on by 1,257 Super User 2024 Season 1

I have 3 combo boxes with items from a static list, when a selection is made it is added to a collection as combo-box1.selected.name  etc.. 

 

However if the user selectds "NotFound" from the combo box I would like to give them the option to manually add the missing name so that it's saved to the collection.  So combo-box1.selected.name is now whatever they have manually typed in? rather than "NotFound"  

 

Hope you can follow 

 

TIA

 

 

Categories:
I have the same question (0)
  • Verified answer
    realwillwright Profile Picture
    772 Moderator on at

    Hi @vffdd 

     

    I have done this previously by having a text input appear when the 'NotFound' value is selected. It is done by using a variable which initially shows the combobox and hides the combobox and shows the text input if the variable changes.

     

    You will need to have code on the patch to check it is 'NotFound'. If it is it would patch the text input value to the collection rather than the combobox selected value.

     

    I also added in a cancel icon to the text input so it goes back to the combobox.

     

    Hope this helps you out
    -------------------------------------------------------------------

    If my reply helped you, please give a 👍
    If it solved your issue, please give a 👍 & accept it as the Solution to help other community members find it.

  • vffdd Profile Picture
    1,257 Super User 2024 Season 1 on at

    THanks @realwillwright I was thinking of something along those lines. I know I will need to use a text input. My issue is that I actually have 12 combo boxes so I'm trying to think of the most efficient way to do it !  It's unlikely there will be 12 Not found ! but there could be 2 or 3...so the issue then is the code for the patch to the collection. How to differentiate without having to create 12 text inputs. But I currently can't see any option for that as it's not saved to collection until all 12 boxes are complete.   I may look at using a gallery someway?

  • realwillwright Profile Picture
    772 Moderator on at

    Have you looked at creating component(s)? you might be able to do it that way, but you will need to run Power FX which I'm not sure is possible without turning on the preview feature 'Advanced Components'. 

  • vffdd Profile Picture
    1,257 Super User 2024 Season 1 on at

    I've actually gone another way !  similar to your first suggestion above with the variable and text field.  So I'll mark that as solution.  

     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard