Hi,
I have a select made in this way:
Now I would a text box populated automatically, based on the selection of the select before.
I would populate the text box with "Banner pvc.." and not with the value "12".
I have found this solution but I can't adapt it to chronoforms. Ho can I do this?
Regards
monak1983
I have a select made in this way:
<select class="cf_inputbox" id="select_5" size="1" title="Effettua una scelta!" name="tipo_nolavorazioni" onChange="updatethis(this.form);">
<option value="">Clicca per scegliere</option>
<option value="12">Banner pvc 700gr € 12,00/mq</option>
<option value="15">Banner pvc 700gr alta qualità € 15,00/mq</option>
<option value="21">Banner backlit eurosol 550gr spalmato € 21,00/mq</option>
<option value="10" >Rete mesh antivento 400gr classe B1 endutex € 10,00/mq</option>
</select>
Now I would a text box populated automatically, based on the selection of the select before.
I would populate the text box with "Banner pvc.." and not with the value "12".
I have found this solution but I can't adapt it to chronoforms. Ho can I do this?
<SCRIPT type="text/javascript">
function aggiornaHidden(sel){
var f = document.frm;
f.sel_value.value = sel.options[sel.selectedIndex].value;
f.sel_text.value = sel.options[sel.selectedIndex].text;
}
</SCRIPT>
<FORM name="frm">
<SELECT name="sel1" onchange="aggiornaHidden(this)">
<OPTION value="" selected> Scegli
<OPTION value="A"> Opzione 1
<OPTION value="B"> Opzione 2
<OPTION value="C"> Opzione 3
</SELECT>
Regards
monak1983