2 Replies Latest reply on Nov 17, 2008 2:40 PM by gkaiseril

    Expiration Date for Form Use

    fjcunninghamjr Level 1
      Hi,
      Is there a way to create a fillable form either in Acrobat or Designer and have an expiration date (time limit)for third parties to use the form, say 3 or 6 months. After the time limit the user should get a message (that I create) in the middle of the fillable form.
      Frank
        • 1. Re: Expiration Date for Form Use
          gkaiseril MVP & Adobe Community Professional
          For a fool proof method, you need to use and support DRM. There are some Acrobat JavaScript script's but they can be turned off by an application preference setting.

          This is a fairly simple document level JavaScript with a date calculation.
          • 2. Re: Expiration Date for Form Use
            gkaiseril MVP & Adobe Community Professional
            A document level JavaScript can be similar to:

            function Expire(sExpirationDate, cFormat)
            {
            // Get the current date and time value
            var fNow = new Date().valueOf();
            // Setup End Date
            var fEnd = util.scand(cFormat, sExpirationDate).valueOf();
            var bExpired = false; //default logical value for expiration

            // see if the current date
            if(fNow > fEnd) {
            bExpired = true;
            }
            return bExpired; // return expiration status
            }

            // set expiration date string format "mm/dd/yyyy"
            var cExpiration = "11/19/2008";

            // execute check expiration code
            if ( Expire(cExpiration, "mm/dd/yyyy" ) ) {
            app.alert("This docuemnet has expired")
            }