Page 1 of 1
Help-text to display with this field: not working [solved]
Posted: Tue Jan 28, 2014 10:07 am
by babel
I've a helptext for a field, but it displays on the first field and it should display in another field (ordernummer).
http://www.nodale.nl/test/index.php?pag ... rformulier
Re: Help-text to display with this field: is not working
Posted: Tue Jan 28, 2014 3:48 pm
by HarmO
You can personalise your form template completely. So you can display this however you want.
an example that i've made for you ( you just need to check on how to do the date field because i haven't done that before)
Code: Select all
{$fb_form_header}
{$fb_form_start}
<div>{$fb_hidden}</div>
<div{if $css_class != ''} class="{$css_class}"{/if}>
{* Naam *}
<div{if ($fld_35->valid == 0)} class="error"{/if}>
<label>{$fld_35->name}</label>
{$fld_35->input}
{if $fld_35->valid == 0}<small>{$fld_35->error}</small>{/if}
</div>
{* Mailadres *}
<div{if ($fld_37->valid == 0)} class="error"{/if}>
<label>{$fld_37->name}</label>
{$fld_37->input}
{if $fld_37->valid == 0}<small>{$fld_37->error}</small>{/if}
</div>
{* tel*}
<div{if ($fld_38->valid == 0)} class="error"{/if}>
<label>{$fld_38->name}</label>
{$fld_38->input}
{if $fld_38->valid == 0}<small>{$fld_38->error}</small>{/if}
</div>
{* Adres *}
<div{if ($fld_39->valid == 0)} class="error"{/if}>
<label>{$fld_39->name}</label>
{$fld_39->input}
{if $fld_39->valid == 0}<small>{$fld_39->error}</small>{/if}
</div>
{* Postcode *}
<div{if ($fld_40->valid == 0)} class="error"{/if}>
<label>{$fld_40->name}</label>
{$fld_40->input}
{if $fld_40->valid == 0}<small>{$fld_40->error}</small>{/if}
</div>
{* Plaats *}
<div{if ($fld_41->valid == 0)} class="error"{/if}>
<label>{$fld_41->name}</label>
{$fld_41->input}
{if $fld_41->valid == 0}<small>{$fld_41->error}</small>{/if}
</div>
{* Ordernummer *}
<div{if ($fld_43->valid == 0)} class="error"{/if}>
<label>{$fld_43->name}</label>
{$fld_43->input} <span class="help">{$fld_43->helptext}</span>
{if $fld_43->valid == 0}<small>{$fld_43->error}</small>{/if}
</div>
{$submit}
</div>
{$fb_form_end}
{$fb_form_footer}
Re: Help-text to display with this field: is not working
Posted: Tue Jan 28, 2014 4:01 pm
by JohnnyB
Its just a CSS thing. Clear your floats
.cms_form fieldset div {clear:both;}
Try that and see if the help image pops into place for you.
Re: Help-text to display with this field: is not working
Posted: Tue Jan 28, 2014 4:09 pm
by HarmO
That would be even easier

Re: Help-text to display with this field: is not working
Posted: Tue Jan 28, 2014 4:22 pm
by babel
JohnnyB, many thanks for giving the right answer and it's so easy.