Forums

insert id into ghsot hidden field of checkbox

lapo78 18 May, 2015
hi,
how to insert id into checkbox hidden field? for example
<label for="sesso">Sesso *</label>
<input type="hidden" alt="ghost" value="" name="sesso">
For w3c validation i need to insert id inside input.

thanks
GreyHead 18 May, 2015
Hi lapo78,

A few options,

+ You can disable the ghost unless you really need it.

+ You can upgrade to Cfv5 where the ghost has an id set

+ You can hack the code in /administrator/components/com_chronoforms/helpers/html_helper.php around line 484 to add an id:
$output .= '<input type="hidden" name="'.$fieldname.'" id="'.$fieldname.'_ghost" value="'.$tag['ghost_value'].'" alt="ghost" />'."\n";


Bob
lapo78 18 May, 2015
Thanks, i saw, but i don't want change helper file. I'm looking for ovverride helper...
This topic is locked and no more replies can be posted.