I'm trying to use the Pure CSS (http://purecss.io/) form template. However, it requires that I give the form a class. Unfortunately, I can't find where to change that anywhere. Where it says "CSS Class for this form:", it just creates a div at the start of the form.
It doesn't seem to be included in the Form Template, the beginning of the template is called by $fb_form_start. I've searched through the module classes to find out where that might be, but I can't find it anywhere.
Custom class for FormBuilder form
-
chillifish
- Forum Members

- Posts: 92
- Joined: Wed Jul 27, 2011 9:26 am
-
chillifish
- Forum Members

- Posts: 92
- Joined: Wed Jul 27, 2011 9:26 am
Re: Custom class for FormBuilder form
Actually, it doesn't seem that the form element needs to be labelled, it works with the containing div that formbrowser creates.
Would be useful to know the answer though.
Would be useful to know the answer though.
-
staartmees
- Power Poster

- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: Custom class for FormBuilder form
select the form in the list
tab main >> CSS Class for this form: here you set e.g. formbuilder
also read https://www.cmscanbesimple.org/blog/styling-forms
tab main >> CSS Class for this form: here you set e.g. formbuilder
also read https://www.cmscanbesimple.org/blog/styling-forms
Re: Custom class for FormBuilder form
There's always the (less efficient though effective) replace modifier:
It's untested example. Make sure it doesn't get two class attributes etc.
Code: Select all
{FormBuilder|replace:'<form':'<form class="your-class"' form='yourformalias'}-
chillifish
- Forum Members

- Posts: 92
- Joined: Wed Jul 27, 2011 9:26 am
Re: Custom class for FormBuilder form
That's useful, thanks.velden wrote:There's always the (less efficient though effective) replace modifier:
It's untested example. Make sure it doesn't get two class attributes etc.Code: Select all
{FormBuilder|replace:'<form':'<form class="your-class"' form='yourformalias'}

