FormBuilder not assigning CSS class?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
severtki
Forum Members
Forum Members
Posts: 29
Joined: Tue Aug 11, 2009 1:33 pm

FormBuilder not assigning CSS class?

Post 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!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: FormBuilder not assigning CSS class?

Post 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...
severtki
Forum Members
Forum Members
Posts: 29
Joined: Tue Aug 11, 2009 1:33 pm

Re: FormBuilder not assigning CSS class?

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

Return to “Layout and Design (CSS & HTML)”