Heading fields for webforms
Hi there,
When creating webforms, it would be great if there was an option for a 'heading field' which doesn't require input from the user, but is basically just used to separate different areas of the webform.
We find that this would be especially handy when creating survey-type webforms.
Thanks :)
-
Hi,
We've created an extension called Advanced Web Forms, where we try to implement useful things that are missing in the otherwise excellent native feature.
We have recently implemented Section Headers, so if you want to check out that and other webform related stuff, you can read more at: http://advancedwebform.com/
Cheers,
Erik at Elvenite -
To add to Adrien's suggestion - because his is still the best option at this point - I wanted to include some CSS that will really help make the "section header" stand out.
First, I'll repeat the steps in getting the field on the form that we'll style:
Add a "Category" field to your template.
Select "Single choice" and "List" from the field's configuration options, and do not enter a category option.
Note: when you save your template, the field will be given a name that does not change. In my example, I called the field "Personal Information" and the name Podio gave the field was "personal-information". Keep this in mind, because it comes into play shortly.
Next, on your webform designer, click on the option to enter Custom CSS under the "Theme" section. Paste the following CSS:
label[class="webforms__label"][for="personal-information"] {
border-bottom-color: black;
border-bottom-style: solid;
font-size: 16px;
margin-top: 60px;
}Save everything and take a look at the webform preview. You should see a header like the following:
If you have multiple section headers, you just add a comma-delimited list for each of the field names given by Podio, e.g.:
label[class="webforms__label"][for="personal-information"], [for="another-section"], [for="final-section"] {
border-bottom-color: black;
border-bottom-style: solid;
font-size: 16px;
margin-top: 60px;
}I hope this helps someone!
Please sign in to leave a comment.
Comments
7 comments