Plugin

EE 1
EE 2
Field Builder

Developer

Adam Wiggall

3rd Party (Free)

Creative Commons Attribution

Compatibility

  • LG Addon Updater
  • Multi Site Manager
  • Stand Alone Entry Form

Requirements

  • jQuery for the Control Panel

Tags

Returns form fields and labels based on Matrix entries.

Installation. The directory */fieldbuilder* should be placed in */system/expressionengine/third_party/*

Usage

    {exp:fieldbuilder 
        label="{the_display_name_for_the_field}" 
        type="{form_input_type}"
        name="{to_create_name_and_id}"
        options="{comma_separated_list_of_options}" 
        req"{yes_or_no}"
    }

Works Best With…

‘Matrix’ by Pixel & Tonic

The plugin works best with a matrix of fields that can be set by a user in the expressionengine control panel when publishing an entry.

Examples

For a {type} of "text" that was shown as required the plugin would return,


    <label for="{name}">{label}</label>  
    <input type="{type}" name="{name}" id="{name}" class="required" />

 

 
For a {type} of "select" the plugin would return,

    <label for="{name}">{label}</label>  
    <select name="{name}" id="{name}">  
    <option value="" selected="selected">Please Select…</option>  
    <option value="{options(1)}">{options(1)}</option>  
    <option value="{options(2)}">{options(2)}</option>  
    <option value="{options(3)}">{options(3)}</option>  
    <option value="{options(4)}">{options(4)}</option>  
    </select>  

 
For all of the other types available the plugin will return pretty much what you expect, a label, then the fieldtype laid out in a valid way. 

This plugin currently supports the following fieldtypes. *Name* *[variant]* *(argument)* 

1.    Input (text)
2.    Text Area (text_area)
3.    Select (select)
4.    Select [multiple] (multi)
5.    Upload (upload)
6.    Checkbox [single] (checkbox)
7.    Checkbox [multiple] (multic)
8.    Radio Buttons (radio)

Use the argument values above in a select field within the matrix either on their own, or to the left of a colon when paired with a more readable label, like so…


  text : First Name
  select : Home State
  checkbox : Newsletter

Field Builder Links

This entry was last updated March 21, 2011, 4:34 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

2 Reviews:

Ian Pitts 03.21.11

Rating - {addon_rating_average}

I use this on a production site (the code was born there) to allow non-technical content owners to easily build out contact forms for soft landing pages. It works perfectly.

Jeff Claeson 03.21.11

Jeff Claeson
Rating - {addon_rating_average}

This plugin makes creating a formbuilder much easier by simplifying your templates by letting Field Builder do much of the heavy lifting. Works great!