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

read RB choice and export different value

New Here ,
Jul 12, 2016 Jul 12, 2016

I have an already filled pdf form. It contains RB with respectively 5 choices and 5 export values : in order (5, 4, 3, 2, 1) I would like to export a different value according to which RB is checked.  for instance if the second is checked, instead of exporting the value 4 I would like it to export the value 2.  Please help Thx

TOPICS
Acrobat SDK and JavaScript , Windows
365
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
Community Expert ,
Jul 12, 2016 Jul 12, 2016

Export to where, exactly?

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
New Here ,
Jul 12, 2016 Jul 12, 2016

I export the PDF form data as xml files or excel spreadsheets.

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
Community Expert ,
Jul 12, 2016 Jul 12, 2016

In that case it's not possible. You can use a script to generate the output you want, but it can only be plain-text.

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
New Here ,
Jul 12, 2016 Jul 12, 2016
LATEST

I tried things like this but didnt work :

for(var  i=0 ; i<RB.length ; i++) {

if (RB.checked) {

RB.exportValues  = « new value » ;

}

}

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 ,
Jul 12, 2016 Jul 12, 2016

Have you looked at how one can export data from an PDF file and the formatting of the exported data. Acrobat forms does a variation of XML called XFDF. You could created additional hidden fields that would have the values you want to use, but this makes exporting the data more complex.

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
New Here ,
Jul 12, 2016 Jul 12, 2016

yes I know that I can as well export and recode exported values but it takes more time.

I hoped I could batch run a script on all my PDFs and then export properly

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
New Here ,
Jul 12, 2016 Jul 12, 2016

I tried things like this but didnt work :

for(var  i=0 ; i<RB.length ; i++) {

if (RB.checked) {

RB.exportValues  = « new value » ;

}

}

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