Page 1 of 1

FormBuilder not assigning CSS class?

Posted: Tue Aug 11, 2009 1:39 pm
by severtki
Using FormBuilder 0.5.11

Seems like I'm doing everything I'm supposed to, but there's no class="myclass" being added to the FormBuilder input element...

I've assigned a value to "CSS Class for this field:" on the Advanced Settings tab for the field.

I'm displaying the input element using:
{$name_last->input}
in the Form Template.

The resulting HTML is:


Shouldn't the result look like:


It's not picking up my CSS styling since there's no CSS class being defined.  Am I missing something obvious here?

Thanks in advance!

Re: FormBuilder not assigning CSS class?

Posted: Wed Aug 12, 2009 9:32 pm
by Dr.CSS
When you add a class to a filed it most times goes to the div around the field not in the value call...

Re: FormBuilder not assigning CSS class?

Posted: Wed Aug 12, 2009 10:27 pm
by severtki
So the answer, I guess, is to build a around the line:
{$name_last->input}

so it's:
class}">
  {$name_last->input}


Got it.  Thanks.  Just couldn't figure out why the class field was seemingly being ignored.