Hi,
please do the following:
1) add hidden input element to your form (in this hidden input element you will store name of selected radio button).
P.S: If you have for example two radio button then add two hidden input element
2) then go to your radio button->Advanced->Actionscript->check Custom->check Change and put:
function ff_nameofradiobutton_action(element, action)
{
switch (action) {
case 'change':
vals = '';
opts = JQuery("[name=\"ff_nm_nameofradiobutton[]\"]");
for (o = 0; o < opts.length; o++)
if (opts[o].checked)
{
vals = opts[o].value;
}
if(vals=='5') {
ff_getElementByName('nameofhiddeninput').value="Agree";
}
else if(vals=="3") {
ff_getElementByName('nameofhiddeninput').value='Unsure';
}
else {
ff_getElementByName('nameofhiddeinput').value="DONT Agree";
}
break;
default:;
} // switch
} // ff_nameofradiobutton_action
Please replace:
-nameofradiobutton with name of your radio button (not title)
-nameofhiddeninput with name of your hidden input (not title)
-3,5,0 is value of your radio button
-I added titles which will be stored in hidden input on each value
3) then go to pdf_attachment.php and when you want to show name of selected radio button call hiddeninput in which is stored selected label of radio button:
if (count($xmldata)){
foreach ($xmldata as $data) {
$value = nl2br(htmlentities(substr(is_array($data[_FF_DATA_VALUE]) ? implode('|',$data[_FF_DATA_VALUE]) : $data[_FF_DATA_VALUE],0,10000), ENT_QUOTES, 'UTF-8'));
switch($data[_FF_DATA_NAME]){
case 'nameofhiddeninput':
$score01 = $value;
break;
}
}
}
again, nameofhiddeninput is name of your hiddeninput element (not title)
I hope I explained it well
If you need more help, please let me know
Regards,
Tihana