Closed Ipsofacto99 closed 1 year ago
This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.
Hi @Ipsofacto99 - I have tested it and It is working fine. I think you got bit of confusion between option value and option label.
Option value - These are the value you can access through widget state. Option label - ( When you have used it ) These are the labels that will appear for selection. If your labels length is less than your options length the remaining option values will also be used as labels.
It is more useful when you got values and observations to display in the dropdown. example - Country and its short name ( India (IND) ).
Why close this? It's a bug, bacause a usere would search what he sees not some internal value like an ID. In my case most of my values are UUDIS with labels as text.
17259789-6344-482d-854a-821309444bfa - Category 1 17259789-6344-482d-854a-821309444bfb - Category 2 17259789-6344-482d-854a-821309444bfc - Category 3
OR
ID:1 - Category 1 ID:2 - Category 2 ID:3 - Category 3
It's a very common case (if not the most common) and the user has no clue about my values, only about the labels.
I have the same problem. @wenkaifan0720 @bulgariamitko @agreaves can you check this?
@Franco98404 , I agree this could be an issue, but I made a video where I am using dropdowns and filtering the values by the value, so I am not sure if it is a setup mistake or FF issue. What back-end are you using and how did you setup your logic is it the most important part, if you can record a video
this is the video I am talking about https://www.youtube.com/watch?v=x-kivZ7ChD8&t=1568s
Has your issue been reported?
Current Behavior
So i was testing the new search feature for the dropdown widget and i found out that
you cant search the option labels, just the option values,
what i did was defining the option values as the ids of a collection documents, and option labels as the display name field of those documentes. so when i search the name of my customers others would show up because those characters i entered in the search were matching the document id.
i consider this a bug because i expected that the search results would index the option labels not the values
Expected Behavior
i expected that the search results would index the option labels not the option values
Steps to Reproduce
1.- Add a dropdown widget 2.- Define the option values as the docuement reference. result of collection query (List of documents) 3.- Define the option labels as a field name. result of the same collection query (List of documents) 4.- Enable search 5.- Test the search
Reproducible from Blank
Bug Report Code (Required)
IT5fl/H1uI9Om+FK0LXycflF9Sk5JlgjRY0/jtVuTRMbfJfqE+wqZOOkM1NJYsOXTVY3PlGJ8Tgy+KHFk/zpG/ldGxStaYNeyLgNbzvyIHOmSqqsCrqsR0F8M8dVJkC7yJjZmA9RALZvR1I+3WWHfNiRHyzaJbLKDjMdM+SICK75nE6RAR73FztVxmNecCfn
Context
create a dropdown list of my client name that can be searchable, that returns the document id
Visual documentation
https://user-images.githubusercontent.com/66653634/232588337-5af5f14f-c05c-4690-96f0-c1de7fa1e398.mp4
Additional Info
No response
Environment