Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to update scripted dates in PDF forms?

Community Beginner ,
Feb 17, 2016 Feb 17, 2016

When making changes to the primary date in the current document other dates auto populate, if we modify the primary date, the script seems to stop working.

Here is the script that we found under the primary date:

TOPICS
Acrobat SDK and JavaScript , Windows
901
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 17, 2016 Feb 17, 2016

Please post the full script, as text, not as an image, and specify exactly where it's located (under which trigger/action).
Also, open the JS Console (Ctrl+J) and check for any error messages there.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 17, 2016 Feb 17, 2016

Also, post the code of SetFieldValues (it's probably located under Tools - JavaScript - Document JavaScripts).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 17, 2016 Feb 17, 2016

Nothing seems to be set in Javascript.

The custom keystroke script that I pulled from the primary date is the following:

if ( event.willCommit ) {

   if (event.value == " ")

      this.resetForm(["dDate1","dDate2","dDate3","cDate1","cDate2",

       "cDate3","dDate6","dDate4","dDate5"]);

   else

      SetFieldValues(event.value);

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 17, 2016 Feb 17, 2016

This form is for the calendar year 2015, you may need to get the 2016 form from the stae of California.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 17, 2016 Feb 17, 2016

Our firm created this form, I have not participated in making the form, just have to modify it now.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 17, 2016 Feb 17, 2016
LATEST

Have you opened the form in the "Prepare Form" tool and looked at the options for the dropdown list?

Have you asked within the firm for help in editing forms?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 17, 2016 Feb 17, 2016

You need Acrobat Pro to gain access to the full code.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines