Hi Mihaela,
I hope you are fine.
All the week end long, I continue to work on my form.
Now, I need to transfer the value of choosing a radio button to another element that needs to display it. At the same time, this value must be added.
The starting radio button element is called:
workshopholidayparties
and it contains this :
0;1 WORKSHOP 45 €;45
0;2 WORKSHOPS 90 €;90
0;3 WORKSHOPS 135 €;135
0;4 WORKSHOPS 180 €;180
0;5 WORKSHOPS 225 €;225
0;6 WORKSHOPS 270 €;270
0;7 WORKSHOPS 315 €;315
I put this framework script in the script action by clic :
function ff_workshopholidayparties_action(element, action)
{
switch (action) {
case 'click':
if(element.checked){
ff_getElementByName('mntworkshophp').value = jQuery('[name="ff_nm_workshopholidayparties[]"]:checked').val();
ff_amountowing_action(element,action);
}
else{
ff_getElementByName('mntworkshophp').value ='';
}
break;
default:;
} // switch
} // ff_workshopholidayparties_action
The destination element of this chosen value is:
mntworkshophp.
There, i put this framework script.
function ff_mntworkshophp_action(element, action)
{
ff_getElementByName('mntworkshophp').value = 0;
{ff_getElementByName('mntworkshophp').value =
jQuery('[name="ff_nm_workshopholidayparties[]"]:checked').val();
}} // ff_Champ_action
Unfortunately it does not work. Can you please look at where is the syntax error ?
It's the first time i'm using this code ...
Thanks a lot for help, hope read you soon.
Best regards.
Marc-André.