Expand my Community achievements bar.

SOLVED

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

Avatar

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

Avatar

Correct answer by
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

Avatar

Correct answer by
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

 

Avatar

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.