Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

Tag nesting in Form_builder

edited June 2015 in Bug Reports
With a field type of "section" it's possible to use block tags (eg h3) but the form builder wraps these in span tags, making it invalid according to the W3C validator. I suppose these should be not wrapped, or wrapped with divs?


  • edited 5:56AM
    That makes sense. I'll look into updating that. There is also the ability to make sections by adding a "section" parameter and specifying the section_tag property on the form_builder instance which won't wrap it in the span. This would insert the section right above the field:
    $fields['my_field'] = array('section' => 'MY SECTION'); $this->form_builder->section_tag = 'h4'; $this->form_builder->set_fields($fields);
  • edited 5:56AM
    Interesting! Noted.
Sign In or Register to comment.