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

How To Deactivate Form Functionality Based Upon Date and Notify User That Form's Contents Out-Of-Date

tcb
Registered: May 12 2008
Posts: 15

Hello,
 
Have a working smart form which includes a catalog of services and prices that will be updated at least twice a year. Users can download this form directly from a website, receive it as an email attachment, etc.
 
This smart form lets people obtain quotes, select services, then order them by pressing "submit" on the Form created using Acrobat X's distribute function and acrobat.com
 
Since lots of these older 2011 forms will be "in-the-wild" after the prices have expired and a new H1-2012 smart-form is made available, I'd like to find a simple way (Without LifecCycle Server) to notify those who try to open the old 2011 form in January 2012, that the 2011 form is out-of-date, and of the availability and location of the current 2012 version.
 
Because these SmartForms can submit data, I'm also intrigued with whether (based on the date the form is opened) whether (and how) I might shut the form's submission capability completely off so orders with obsolete prices never make it into our backend system.
 
Any suggestions on how to do this would be welcome.
 

My Product Information:
Acrobat Pro 10.0.2, Macintosh
try67
Expert
Registered: Oct 30 2008
Posts: 2398
You can use something like this in a folder-level script:

if (new Date().getFullYear()<2012) {
app.alert("This is an older form! You can download the new one at: ... ",3);
}

However, be aware that you can't use this to prevent the user from opening, viewing or filling-in the form.
The user will always be able to disable JS, or change their local time or any number of things to get over this.

You can use something similar with your submit button, if you submit using a script:

if (new Date().getFullYear()<2012) {
app.alert("This is an older form! You can't submit it anymore.",3);
} else {
this.submitForm();
}

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