Skip navigation |

Define common form sections to use on multiple forms on your site

If you have the same set of questions that you ask on multiple forms on your website, you can set these up as a form snippet.

Last updated: 09 May 2012, 15:55

Why would I use a form snippet?

Rather than entering the same questions on every form, you can use a form snippet to define one row in the form which will then automatically add every question from your form snippet. This can be useful if you have a lot of similar forms on your website, e.g. Event Booking Forms. If you use the same contact information fields on every form, this would be a good reason to use a form snippet.

How do I set up a form snippet?

The first thing you need to do is to create a hidden channel on your website that will contain your form snippets. Make sure that you leave the Create Channel Summary option ticked when you create this channel.

When you have created this channel, you need to send an email to help@cubik.co.uk to request that we designate this channel as a Form Snippets channel. We will send you an email to confirm when this has been done.

Inside this channel, you can create any number of pages using the Web Form template. Each of these forms will become a form snippet. Set up the form in the same way as any other form, only adding the fields that you want to become part of the snippet.

You can see our form snippet page here.

How do I add a form snippet to my web form?

When you edit the form definition on your form, you will see a new option in the Input Type dropdown for each form snippet that you have created. Simply choose this option from the list, and save the row.

Form Snippets Input Type

When you have saved and approved the form, you will see the fields from the snippet are automatically added. The form definition of our example form below looks like this (click to see full size).

Example

Here are some form questions above our snippet




Our form snippet starts here

This text is in the form snippet.

This is the end of the form snippet
 

Cookies are used by nearly every website to improve your web browsing experience. Recent government legislation (the e-Privacy Directive) means that we are obliged to seek your agreement to the use of cookies when you visit our website. Two of the cookies that we use are essential for this website to operate and have already been set. You may delete and block all cookies from this site, but if you do so, parts of the site will not work. To find out more about the cookies that we use, please see our privacy policy.