Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how to set radio button pair during FDF load

Explorer ,
Apr 21, 2016 Apr 21, 2016

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?

TOPICS
Acrobat SDK and JavaScript , Windows
740
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 21, 2016 Apr 21, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 22, 2016 Apr 22, 2016
LATEST

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines