16 Replies Latest reply on Sep 6, 2011 11:12 AM by a mcd

    How to stop global counter with form file name change?

    a mcd

      I'm trying to use a persistent global variable to advance a form number each time the form is opened.

      It works great, but I'd like it to stop advancing once a user has saved the form as a different file name.

       

      A partially manual operation where a form is opened with an initially persistent counter, is saved with a new name, then loses its persistence with a button push - would be ok too - as long as the counter in the original file name retains its persistence for the next user to get an advanced number.

      I have tried this method, but am unable to get a button to override my setPersistent value in the document level script.

       

      Hope my description isn't too convoluted.

       

      Thanks!