i want to create a contact us form using contour. but how can i make a cancel button which clears all the text fields in form. and on submit all the data store in sql server database.
The form data is stored in the umbraco sql database by default. If you want to store the form data in another sql database, you need to look into custom workflows, as you can write on eof these for your form to make it save somewhere else on submission.
As far as I know there's no way to add a reset button out of the box, but it should be relatively simple to inject a html reset button using JQuery or similar if you wanted to.
layout of contour form
Hello guys
i want to create a contact us form using contour. but how can i make a cancel button which clears all the text fields in form. and on submit all the data store in sql server database.
any help will be highly appreciated
thanks
Asim
Hi Asim,
The form data is stored in the umbraco sql database by default. If you want to store the form data in another sql database, you need to look into custom workflows, as you can write on eof these for your form to make it save somewhere else on submission.
As far as I know there's no way to add a reset button out of the box, but it should be relatively simple to inject a html reset button using JQuery or similar if you wanted to.
For the workflows, check out the developer docs: http://our.umbraco.org/FileDownload?id=1222 and the shard source: http://our.umbraco.org/projects/developer-tools/umbraco-contour-shared-source which has the source of the built in workflows.
:)
is working on a reply...