lexscripta wrote:
Yeah, I have had nothing but problems with Formbuilder. I finally got it working a year ago when I had a friend do the CSS, whcih I never could figure out. It is the hardest, least intuitive form thingy I have ever seen. MInd you, it is really good at making and manipulating fields, but thats where it stops. Wait until you want to build a lengthy form and try to style it. Thats a whole lot of fun. Oh yeah.
Anyhow, I did an upgrade of CMSMS, and it stopped working... Now I am having the same issues you are.
Thanks for your post lexscripta, it's nice to know it's not just me.
this is my template,
{process_pagedata}
{sitename} - {title}
{metadata}
{FormBuilder form='test'}
It's pretty basic and i've not attached any stylesheets to it, still doesn't work, here's the xml form again, just a basic message box with a send to field
function fbht(htid)
{
var fbhtc=document.getElementById(htid);
if (fbhtc)
{
if (fbhtc.style.display == 'none')
{
fbhtc.style.display = 'inline';
}
else
{
fbhtc.style.display = 'none';
}
}
}
{/literal}
{$fb_form_header}
{if $fb_form_done == 1}
{* This first section is for displaying submission errors *}
{if isset($fb_submission_error) && $fb_submission_error}
{$fb_submission_error}
{if isset($fb_show_submission_errors) && $fb_show_submission_errors}
{foreach from=$fb_submission_error_list item=thisErr}
{$thisErr}
{/foreach}
{/if}
{/if}
{else}
{* this section is for displaying the form *}
{* we start with validation errors *}
{if isset($fb_form_has_validation_errors) && $fb_form_has_validation_errors}
{foreach from=$fb_form_validation_errors item=thisErr}
{$thisErr}
{/foreach}
{/if}
{if isset($captcha_error) && $captcha_error}
{$captcha_error}
{/if}
{* and now the form itself *}
{$fb_form_start}
{$fb_hidden}
{if $total_pages gt 1}{$title_page_x_of_y}{/if}
{foreach from=$fields item=entry}
{if $entry->display == 1}
{strip}
{if $entry->needs_div == 1}
required == 1 || $entry->css_class != '' || $entry->valid == 0} class="
{if $entry->required == 1}required{/if}
{if $entry->css_class != ''} {$entry->css_class}{/if}
{if $entry->valid == 0} fb_invalid{/if}
"
{/if}
>
{/if}
{if $entry->hide_name == 0}
multiple_parts != 1} for="{$entry->input_id}"{/if}>{$entry->name}
{if $entry->required_symbol != ''}
{$entry->required_symbol}
{/if}
{/if}
{if $entry->multiple_parts == 1}
{section name=numloop loop=$entry->input}
{if $entry->label_parts == 1}
{$entry->input[numloop]->input} {$entry->input[numloop]->name}
{else}
{$entry->input[numloop]->input}
{/if}
{if isset($entry->input[numloop]->op) && $entry->input[numloop]->op}{$entry->input[numloop]->op}{/if}
{/section}
{else}
{if $entry->smarty_eval == '1'}{eval var=$entry->input}{else}{$entry->input}{/if}
{/if}
{if $entry->helptext != ''} field_helptext_id}')">
field_helptext_id}" style="display:none">{$entry->helptext}{/if}
{if $entry->valid == 0} <--- {$entry->error}{/if}
{if $entry->needs_div == 1}
{/if}
{/strip}
{/if}
{/foreach}
{if $has_captcha == 1}
{$graphic_captcha}{$title_captcha}
{$input_captcha}
{/if}
{$prev}{$submit}
{$fb_form_end}
{/if}
{$fb_form_footer}]]>
As I said before, I can include the {FormBuilder form='test'} into NCleanBlue template and it's fine, add it to my now stripped down own template and squat.
Once again, thanks all.