Community Documentation

Form Panel: Easily Rearrange Input Form Elements

Last updated January 23, 2010. Created by Gribnif on December 22, 2008.
Edited by matt.robinson1. Log in to edit this page.

The Form Panel module provides two theme functions which, in turn, provide an easy way to put multiple input form elements on the same line. At the most basic level, it can turn this:

  First Name:
  [textfield]
 
  Last Name:
  [textfield]

  Address:
  [textfield]

  City:
  [textfield]

  State:
  [select list]

into this:
  First Name:  Last Name:
  [textfield]  [textfield]

  Address:
  [textfield]

  City:        State:
  [textfield]  [select list]

It can do this using either an HTML table or <div> tags. In both cases, it includes various CSS classes to help with styling.

It is important to note, however, that this module does nothing on its own. You must refer to one of the included themes from PHP code in order for there to be any effect.

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 6.x

Site Building Guide

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here