14 Replies Latest reply on Jun 25, 2014 1:52 PM by George_Johnson

    Calculating a due date in Adobe XI using Java script....

    Newtothis...

      I have two fields in a form. One with today's date being calculated with the following:

       

      var f=this.getField("Today");f.value=new Date();

       

      The second field I am trying to add 7 days to, but I can't figure it out. What script would I need to add into the existing field which is populating date and add to the new field to populate this information. I've tried a lot of what I've found on the internet but nothing seems to work..

       

      Also, please note, I am using the 'Document Javascripts" editor in Adobe XI Pro.

       

      Any help is appreciated