Copied to clipboard

Flag this post as spam?

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


  • Jeff 74 posts 346 karma points
    Jul 20, 2015 @ 20:14
    Jeff
    0

    Populating lists from a database/custom data type

    Hi,

    As part of a bigger project I'm working on I need to create a contact form, having tried a few different options (none of which quite work the way I would like) I thought about using Umbraco Forms. However one thing that is causing problems is having to manually keep the drop down list (or radio buttons/check boxes) up to date and I was wondering if there was a way I could use a database table to keep them up to easier and display the same info on different pages/forms.

    Thanks

  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    Jul 21, 2015 @ 07:32
    Ismail Mayat
    100

    Jeff,

    You have 2 options, one is through the contour gui create a new data source of type sql database give it sql connection and query then you can use that data source. When the table is updated the places where the datasource is used will be updated.

    The other option is to create your own data provider the documentation shows you how todo this with sample code. I would go first option as it is easier and quicker.

    Regards

    Ismail

  • Jeff 74 posts 346 karma points
    Jul 21, 2015 @ 11:35
    Jeff
    0

    Hi Ismail,

    Thank you for this advice I'll look into the first option as that should work best for us.

    Regards, Jeff

Please Sign in or register to post replies

Write your reply to:

Draft