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 / I want to add text in ...
Power Apps
Unanswered

I want to add text in dropdown list if that text do not exist in choices

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I want to add text in dropdown list if that text do not exist in choices

 

ex. my choices have

A

B

C

 

but i want user can add ex. M  or P by themselves

What code / should I use in this situation

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, @Anonymous, can you post some of your code ? for example a screenshot or some rows of code

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

    Hi @Anonymous ,

    Do you want to update the drop down's Items according to the user's entered data?

    I've made a similar test for your reference:

    1)save a collection with the original data:
    ClearCollect(aaa,{data:"A"},{data:"B"},{data:"C"})

    2)Set the drop down's Items: aaa  Value: data

    3)insert a textinput control

    4)inset a button, set the button's OnSelect:

    Collect(aaa,{data:TextInput1.Text})

     

    Then, if the user enter some data in the textinput, click the button. The drop down's data will be updated.

    6212.png

     

     

    Best regards,

    Community Support Team _ Phoebe Liu

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    Were you able to resolve?

     

    You can use a combobox to achieve your needs, you just need to follow below steps, and whenever you enter something in the combobox search text and clicks outside of the control , the item will be added to collection automatically.
     
    Steps:
    1) Create a collection on Screen visible:
    Screen -> OnVisible -> 
    ClearCollect(MyCollection,"Test1","Test2")
    2) Add a Combobox control and refer to this collection in the items.
    ComboBox -> Items: MyCollection
     
    3) Change the OnSelect property of your combobox to automatically add items.
     
    ComboBox -> OnSelect -> 
    If(!IsBlank(ComboBox1.SearchText) && !(ComboBox1.SearchText in MyCollection.Value),Collect(MyCollection,ComboBox1.SearchText))
     
    Here ComboBox1 is the name of combobox control, please replace this with actual value.
     
    Please make sure, that you have enable the "Allow Searching" feature in your combobox.
     
    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard