formBuilder layoutTemplates option

The layoutTemplates option lets you customise field output without touching the layouts class. For more control see the layouts option.

Customising main layouts

layoutTemplates: {
  default: function(field, label, help, data) {
    help = $('<div/>')
      .attr('id', 'row-' +
    return $('<div/>').append(label, field, help);

Customising label & help layouts

layoutTemplates: {
  help: function(helpText) {
    return $('<div/>')
  label: function(label, data) {

    // cheeky styling
    return $('<label class="bright" style="margin-top:15px;"/>')