Hi, i've a problem with chronoforms and chronoconnectivity:
I've a chronoconnectivity form that have a table with a column that i can click and open a chronoforms form in witch i can select Yes or No with a radio button and button save.
So i've the necessity that if i check yes and save the form send an email to an adress; but if i check no i send an email to another address.
But the problem is that the radio button value is checked in according to the value of db field read when the form is loaded and the name of the checkbox is: richiestaferie[accettate] and the value is NO=NO and YES=YES
I've created an event switcher that have this code:
I've a chronoconnectivity form that have a table with a column that i can click and open a chronoforms form in witch i can select Yes or No with a radio button and button save.
So i've the necessity that if i check yes and save the form send an email to an adress; but if i check no i send an email to another address.
But the problem is that the radio button value is checked in according to the value of db field read when the form is loaded and the name of the checkbox is: richiestaferie[accettate] and the value is NO=NO and YES=YES
I've created an event switcher that have this code:
<?php
switch ($form->data['accettate']) {
case 'SI':
return 'SI';
break;
case 'NO':
return 'NO';
break;
}?>