Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

My data source works in Preview PDF mode but not when I generate the form

StephenQ
Level 1
Level 1

Now that we're in work-from-home mode, I'm trying to convert a bunch of XFA forms to be online/email rather than print focused. The submitter might select one of several approvers, and I don't want to have to maintain the email addresses in each form. So I'm connecting to an external XML file in the same folder as the form and pulling the relevant names into a dropdown list. I then extract the email address of the selected user and plug it into the RealSubmit event. Works perfectly when I do a Preview PDF. But when I save the form in-place as a Reader Extended PDF file and open it, the dropdown list is empty. The data source path is "./filename.xml". Any ideas? Thanks!

1 Accepted Solution
radzmar
Correct answer by
Level 10
Level 10

When you open the form in Acrobat the data won't get imported automatically as in the PDF Preview. 

Use the Import Data function to load you XML file. You'll find it under the right hand tools pane or under [Edit] > [Form Options] > [Import Data].

radzmar_0-1620673217431.png

 

View solution in original post

2 Replies
radzmar
Correct answer by
Level 10
Level 10

When you open the form in Acrobat the data won't get imported automatically as in the PDF Preview. 

Use the Import Data function to load you XML file. You'll find it under the right hand tools pane or under [Edit] > [Form Options] > [Import Data].

radzmar_0-1620673217431.png

 

View solution in original post

StephenQ
Level 1
Level 1
Thanks a lot - works perfectly. I almost have this effort completed now but for one issue around XML Sample Data. I'll raise it as a separate ticket in order to make the subject line more findable.