Is there a way to have an Other option in SelectBox where the select box can take a text input instead?

I have a list of options for a field but also want to provide the user to enter their own value if none of the options are what they want. Is there any way this is possible within the select box widget instead of the box showing “no results” and reverting to the default option? Thank You

2 Likes

Hi @Aditya_Nayak, and welcome to the community! :balloon:

If I’m not mistaken, @gagan3012 has created a great Component that accepts user inputs.
Gagan, please would you mind sending the link to your Component for Aditys?

Best,
Charly

hey!
Check out my component: GitHub - hummerichsander/streamlit-free-text-select: This component implements a selectbox that allows free text input. It is based on React-Select's 'Select' component.
I think it does exactly what you need!:slight_smile:

1 Like

I love it, @hummerichsander! Thanks for creating and sharing it with us! :hugs:

You may also like to add it to the Components Tracker.

Best,
Charly