Help-text to display with this field: not working [solved]

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
babel
Forum Members
Forum Members
Posts: 149
Joined: Fri Oct 19, 2012 8:58 pm

Help-text to display with this field: not working [solved]

Post 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
Last edited by babel on Tue Jan 28, 2014 4:23 pm, edited 1 time in total.
HarmO
Power Poster
Power Poster
Posts: 251
Joined: Thu Jan 26, 2012 3:22 pm

Re: Help-text to display with this field: is not working

Post 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}
Kind regards,
HarmO
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Help-text to display with this field: is not working

Post 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.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
HarmO
Power Poster
Power Poster
Posts: 251
Joined: Thu Jan 26, 2012 3:22 pm

Re: Help-text to display with this field: is not working

Post by HarmO »

That would be even easier :-)
Kind regards,
HarmO
babel
Forum Members
Forum Members
Posts: 149
Joined: Fri Oct 19, 2012 8:58 pm

Re: Help-text to display with this field: is not working

Post by babel »

JohnnyB, many thanks for giving the right answer and it's so easy.
Post Reply

Return to “Modules/Add-Ons”