Forum Academy Marketplace Showcase Pricing Features

Using Option Sets in Dropdown then displaying saved choice

I am new. Static drop down no problem. - save choice then when edit needed display saved data by setting default value to the data type via parents group data field. User can then edit the dropdown choice.

Dynamic choices option set no problem saving data but setting default value as above does not let it display. No edit possible…

Can I get it to work the same a statice choices?

this works
Screen Shot 2022-01-27 at 10.22.14 AM

this does not work

Is Volunteers’s Vblood saved in the database as a text or as a selection from the option set. It must be saved as the same type Blood for this to work. Like this:

Screen Shot 2022-01-27 at 9.44.33 AM

When using an option set it defeats the purpose if you save only the value’s Display. You want to be saving the entire option so that you could later possibly add additional attributes to the option set and then those values will be accessible through the data type they are saved to.

So your Volunteer’s Vblood field is a text?

If that’s the case then that’s the reason you can’t set that as the default value - the default value needs to be the same datatype as the Dropdown is set to show (i.e. Blood), whereas currently you’re trying to set it as a text.

In order to do it with a text value you’ll need to set the default value to be All Blood: filtered, then match the option’s display to the saved text field.

But, as @williamtisdale says, that kind of defeats the purpose of using an option set.

The better way to do it is to have the Volunteer’s Vblood field be of type ‘Blood’ (i.e. the option set).

1 Like

Hi Thank you all for your help.
I was going to use option set for language. As I have a language dropdown in many places and it is possible that my people would want to change the language choices so I thought it would save me time.

I tried what you suggested and I can not save the chosen value or display it on edit.

I can save the choosen value in both cases as text. But only static allows the saved value to display on edit.
SO…
I am going to give up, on trying this. Will just do static drops downs and spend the time if need changing choices in the differnt screens.

Thank you again!!!

This topic was automatically closed after 70 days. New replies are no longer allowed.