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 / How to Add Other Choic...
Power Apps
Unanswered

How to Add Other Choices in Dropdown List

(0) ShareShare
ReportReport
Posted on by

Hi, I have to create a dropdown list where the user able to add another choices in canvas app. Is there any code that I have to include?

Categories:
I have the same question (0)
  • Verified answer
    v-liwei-msft Profile Picture
    on at
     
    Could you please tell me if you want user can add options to a Dropdown control that is already connected to the data source?
    If you want the user to add options, I suggest you use the Combbox control. I have made a test for your reference:
    1.I used SharePoint as the data source to create a list named peopleGender. In the list, I created a column named gender with the data type of choices At this time, this column has only two values, male and female.
    vliweimsft_5-1651223765763.png

     

    2.In PowerApps, you can add an Editform that will include a combo box with the options.
    vliweimsft_6-1651223765765.png

     


    3.Then add an 'other' option change the items property of the dropdown to this code.
    vliweimsft_7-1651223765766.png

     

    4.Create a text input and place it directly over top of the combbox when an user selects ‘Other’ from the combbox a text input should appear where a custom value can be filled-in. 
    5.The text input should only be visible when the dropdown is not,you can use this code :Self.Selected.Value<>"Other" .
    6.Save the options entered by the user to the data source:
    Change the update property of the card where the combbox is located. Use the submitform function to upload user added options.vliweimsft_8-1651223765766.png

     

    vliweimsft_9-1651223765767.png

     

    I think this link will help you a lot :
     

    Beat Regards,

    Levi

  • v-liwei-msft Profile Picture
    on at
    Hi @tanflwrz98  ï¼Œ
    Could you please tell me if my reply help you solve this problem? I would be grateful if you can reply to me at your earliest convenience.
     
    Beat Regards,

    Levi

  • khaledfawzy Profile Picture
    20 on at

    done thank you very much on solving this problem

  • Meru Profile Picture
    4 on at

    hey!

    Sorry, i have a problem with this solution.
    I dont why i put the option "Other", it disappear, also if I change places

    Meru_0-1675773140569.pngMeru_1-1675773211989.png

     

  • khaledfawzy Profile Picture
    20 on at

    Ungroup(
    Table(
    {DropdownOptions: Choices('incoming-list'.docsource)},
    {DropdownOptions: ["Other"]}
    ),
    "DropdownOptions"
    )

     

  • mrwilliams Profile Picture
    50 on at

    Following on from this discussion, can anyone help me with my problem? I have used this code and I want to add the option of "All Pupils" but it doesn't add it to the list...

     

    Ungroup(
     Table(
     {pupilOptions: ["All Pupils"]},
     {pupilOptions: Groups}
     ),
     "pupilOptions"
    )

     

    The result is this:

    Groups.png

    What am I missing?


    Thanks

  • MatthewEdwards Profile Picture
    14 on at

    Hello,

     

    I have tried the code posted from the link you shared but its not working for me.

     

    I have a table called shoppings and a choice column called vegetables, i want the option to be able to add different vegetables to the choice from the drop down as per the blog post.

     

    Ungroup(
     Table(
     {DropdownOptions: Choices('Shoppings'.vegetables)},
     {DropdownOptions: ["Other"]}
     ),
     "DropdownOptions"
     )

     

     

    I get an error:

     

    Table doesnt contain any column of text type. 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard