Way to make the `option` being returned different than labels being shown

In a option = st.selectbox(labels) is there a way to have the option that is being returned being different than the labels being shown? (but still 1:1)?

I would like to show a more human readable option on the UI, but have a compact name returned in python.

1 Like

Hey @BisbeeBC ,

Use the format_func option to do what you want. Here is more info on our GitHub.

1 Like