Copy link to clipboard
Copied
An FDF file contains the value of a radio button pair field, but the radio button pair on the form opened by activating the FDF file does not set according to the value of the radio button pair field.
Sitrep:
A submittable Form 'AAA' contains radio button pair 'MyPair'. Neither button is 'on'. One button has Choice value = "Chorus", the other "Ensemble".
A copy of Form AAA is filled in with the 'Chorus' button of 'MyPair' selected, then the form is submitted.
the FDF file received due to the submission of form AAA contains a field named 'MyPair', the value of which is set to "Chorus".
When the FDF file is activated, Form AAA is filled with the data in the FDF file, and displayed. However neither of the button pair 'MyPair' is shown as selected, but all other fields in the form show the data filled in before the submission was made.
Is there a bit of JavaScript that will fix this?
Copy link to clipboard
Copied
You shouldn't need any JavaScript, the FDF is sufficient, assuming it's correct. Without examining the FDF and PDF that's being used, it's hard to say what the problem is. You can try testing with JavaScript disabled in case something like a validation script in a text field is resetting the radio buttons, or something similar.
Copy link to clipboard
Copied
Thank you, George. You have confirmed my original view that the code I
have should work.
Whilst doing some unrelated work on the same form, I removed a template
of the form, which had been used to facilitate some paging facilities
that are no longer needed, and guess what? The radio buttons now work!
So it appears that by some means that I cannot determine, the existence
of a template prevents an fdf load loading radio buttons, but has no
effect on other controls, including check boxes.
So my problem is fixed, but I don't know why1!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now