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 Apps
Unanswered

Editable dropdown?

(1) ShareShare
ReportReport
Posted on by 65

Is there any way to set up dropdown list with few items, and option to input own item if items on the dropdown list is not enough for user?

Categories:
I have the same question (0)
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @nottheOther 

     

    1. Make the Dropdown based on Collection
    2. Have option for Other in Dropdown
    3. OnSelect if this option then expose an Input Field and a Button for Submission
    4. On Submission OnSelect, update the Collection with the new item just before the last option of "Other"
    5. The dropdown should have the new item in there.

     

    Hope this helps.

  • nottheOther Profile Picture
    65 on at

    Well, I don't quite get it. But I will try another work around. And wiith another stupiddo question.

     

    How to "send" value from Dropdown list to TextInput control?
    I want that if user select item from dropdown list than this item will be shown in InputText right above.

  • Verified answer
    v-yutliu-msft Profile Picture
    on at

    Hi @nottheOther ,

    Q1:
    Do you want to enter item to the drop down list?

    The data displaying in drop down list comes from a table.

    If you want to enter item on your own, it means that you need to create new item in the table which is used as the drop down's data source.

    I've made a similar test for your reference:

    1)I assume that you use a collection as the drop down's Items

    2)insert a drop down, a textinput( for you to enter data), a check button

    3)the collection's structure:

    ClearCollect(test,{value1:"a"},{value1:"b"},{value1:"c"},{value1:"d"})

    4)set the drop down's Items:

    test

    5)set the check button's OnSelect:

    If(IsEmpty(Filter(test,value1=TextInput1.Text)),Patch(test,Defaults(test),{value1:TextInput1.Text}))

    //if the data that you enter in the textinput has existed in the collection, then do not patch, if not, patch

    if you do not check the data whether has existed, you could use patch function directly:

    Patch(test,Defaults(test),{value1:TextInput1.Text})

     

     

    Q2:

    Do you want to display the selected item in a textinput?

    Please set the textinput's Default:

    Dropdown1.Selected.value1

    On your side you should try:

    Dropdown1.Selected.fieldname //please replace the field that you want to display

    set the drop down's OnChange:

    Reset(Textinput name)

     

    //then after you select item in the drop down, the textinput will display the selected item value

     

     

     

    Best regards,

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