I stored these in umbraco so the user can manage them.
I usually have two doc types
Picklist and PicklistItem.
On the picklist I allow the user to manage the first item whihc is usually something on the lines of Please make a selection. I have a setting on here to enable and disable the first item.
PicklistItem is then the children. The item in the dropdown value.
In client facing part of the website so on your custom form I then have a method to get the picklist passing in either the picklist Id or name. I then assign this to a SelectList
Custom Form With Drop Down Fields in Umbraco 8
I need to build a custom form which has a number of dropdown fields The client wants to be able to manage the dropdown values for these fields.
I don't really want to use Umbraco Forms for this. A custom form in this case works fine.
I was thinking I can maybe store this data in Umbraco somewhere so the client can manage these there.
What does everyone do in this case?
Hi Nathan,
I do exactly what you are suggesting.
I stored these in umbraco so the user can manage them. I usually have two doc types
Picklist and PicklistItem.
On the picklist I allow the user to manage the first item whihc is usually something on the lines of Please make a selection. I have a setting on here to enable and disable the first item.
PicklistItem is then the children. The item in the dropdown value.
In client facing part of the website so on your custom form I then have a method to get the picklist passing in either the picklist Id or name. I then assign this to a SelectList
See my screen shot. Hope this helps.
Regards
David
Thanks Dave,
That sounds like what i was looking for,
Ill set up up now and let you know how it goes.
Thanks again
Nathan
is working on a reply...