Hi I am trying to troubleshoot a multipart conditional form (form 1) with a yes/no option that goes to form 4 if yes and form 5 if no. to this end I put this in myfunctions.php:
if ( $setting == "nextForm" ) {
if ( $cformsdata['id']==1 ){
$userfield = $cformsdata['data'][$cformsdata['data']['$$$2']];
if ( $oldvalue=='4' && stripos($userfield, 'No')!==false )
return 5;
else
return $oldvalue;
}
}
This doesn't work, however (and yes I uncommented the logic stuff in myfunctions.php).
The odd thing is that when i run the array check I get this for form 1. Why is the id value missing?
Array
(
[id] =>
[data] => Array
(
[$$$2] =>
[] => No
)
)
Anyway, thanks in advance for help with this.