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.
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.
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
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
Hi Ismail,
Thank you for this advice I'll look into the first option as that should work best for us.
Regards, Jeff
is working on a reply...