Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nathan Reece 62 posts 376 karma points
    Sep 09, 2020 @ 06:46
    Nathan Reece
    0

    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?

  • David Armitage 510 posts 2081 karma points
    Sep 09, 2020 @ 07:15
    David Armitage
    100

    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.enter image description here

    Regards

    David

  • Nathan Reece 62 posts 376 karma points
    Sep 09, 2020 @ 07:19
    Nathan Reece
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft