Previous | Next | (P-PDF) Developers
Topic: PDF Forms working with Web application
Conf: (P-PDF) Developers, Msg: 55370
From: udlp
Date: 5/29/2002 05:12 PM
Hello,
On a website, I am using FDF Toolkit to pre-populate some PDF form data from a database and display in browser to user. The user will then fill in remaining form fields and submit back to a url which is an asp page. The asp page is capturing the information as an HTML submission, processing data, and at that point, I would like to present another web page from my site, thanking the user for the submission.
I can do this by putting a submitForm to a URL as HTML under a submit button, but then found that my asp page redirection did not work as the control seems to return back to Adobe and the PDF. I then added another action under the submit button after the submitForm action to then do a URL link to the page that thanks the user. This works, until I discovered the need to validate the form fields.
If I simply check the necessary fields as 'required', the submitForm action correctly doesn't occur when the field is not populated, but the URL link DOES - which means the data doesn't get captured but it appears to the user that it has because the field validation popup is followed by my "thank you for your submission webpage".
If I use a Javascript under the submit button to validate the fields and programatically do a submitForm to my URL asp, that functionality works, but I cannot get back to my website "thank you" page as I cannot do a programatic action to link to a URL after the submitForm in my Javascript.
IF I do the field validation on the server, I cannot seem to get the FDF file back to the client again - I changed the URL file to "http://myserv/mysite/mypage.asp#FDF" but that doesn't seem to even receive the submission and Visual Interdev doesn't like that file naming convention.
Can someone please assist with how to programatically flow back and forth between a website and a PDF form? I've been searching for days for a solution to this problem.
Thank you