These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Application Alert Question

luckylyn5
Registered: Dec 2 2010
Posts: 7

I was interested in a comment thread on the Acrobat "Submit a Form" page at http://help.adobe.com/en_US/Acrobat/9.0/Standard/WS3593E0A4-C5E2-4cde-A09E-2A984346DDD2.w.php (around Oct. 27 - 28, 2009) in which David Offutt asked how to have an Application Alert after a Required Fields check to tell the person submitting the form that the form has been submitted.
 
The moderator suggested posting the question to one of the Acrobat Users forums, but I have not been able to find it via a search of the forums or a browse on the forums from around that time frame (Oct / Nov 2009).
 
Can anyone direct me to this thread and/or assist me in how to accomplish this. I have a form in which I would like the individual to be notified (after the form has been checked as complete and the form has actually been submitted to me) that the form has been submitted.
 
I am using Acrobat 9.X only - not any other products.
 
Thanks - Lynda

Lynda

My Product Information:
Acrobat Standard 9.0, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Which part do you need help with? The validation or just the alert?
If the latter, then it's very simple. Simply use the app.alert() method in your code. For example:

app.alert("You did not fill in all of the required fields.");

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

luckylyn5
Registered: Dec 2 2010
Posts: 7
Thanks for the response. What I am trying to do is this:

The person clicks the "Submit" button but some required fields are not complete, so the person gets the validation message that is already in there stating that there is missing data.

They then complete the missing fields and push the "Submit" button again. They then get a message stating that the form has been submitted.

Basically, I want to put a message "Thank you - your form has been submitted" to appear AFTER validation that all required fields are complete and the form is actually submitted to me. I don't want the "Thank you" message to appear if there are still missing required fields.

Essentially, something like this (bear with me as I am not an expert in Boolean logic):

IF all required fields validate as complete
THEN "Thank you for submitting the form." ELSE
"Please complete the required fields and press Submit again."

I haven't tried adding any alerts myself - I just saw the old message string on the "Forms" page and thought it sounded like a good idea for us, but I couldn't find the resolution to know how to continue. The moderator mentioned placing the applicaton alert after a check for required fields, but refered the individual to the forums in regards to how to do that - but I couldn't find it in the forums.


Lynda

NK-INC.COM
Registered: Apr 17 2010
Posts: 93
If you're submitting to a server-side script, you can send a FDF response with a Status or Message to the user, whether the form submitted successfully or not.

Sending FDF Data responses back to the browser or standalone reader clients works with both Adobe Acrobat and Adobe LiveCycle PDF forms.

For more information on how to create an FDF Document with ASP.net:
NK-Inc.comFDFToolkit.net: Powered by iTextSharpProgramming TutorialsIf you need help developing a solutions, please,
Contact Sales.Hope this helps.