Option Picker Issue #16170
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hey @navedsk
From the documentation:
It depends on how the value is populated. In the settings you'll see "Options Source" - Schema, Data Provider, or Custom. If you're using this form component as part of a Form, the "Schema" setting will fetch options for the Form that correspond to the table you're writing to. In this instance, these values come from the Single-select column where a value is required for each option. You could also choose to fetch options with a Data Provider - this is useful if you wanted to show a human-readable value to the user but use something less friendly under-the-hood. In my example I've got a list of dishes and their price in a table, which I fetch with a Data Provider Then in the settlings for the picker, I can use the name of the dish to display for the user, and hold the price as the "value". Something like this could be used to calculate a price for each diner's meals. In this instance, having a row in the "menu" table without a value in the "label" column may cause an empty item in that list. You could also use the "Custom" setting for the options, and Define options like that - again having an empty "label" for the option might cause this behaviour. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I've misunderstood something here. It looks like your filtering isn't set up the way you expect it to be. If selecting an option in the first Options Picker limits options in that options picker you're probably filtering it with it's own value - you should be using two data providers, one for each dropdown, and using the value from the first to filter the second. Also, just for clarification - What do you have set as your placeholder text? If you return an empty value it should default to "Please choose an option" but if you pass in a space it will prevent the default value being used, but also show nothing - I suspect something like this is the case. Please clear your Placeholder text value. |
Beta Was this translation helpful? Give feedback.
I think you want this...