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.
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