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

Committment problems

Guest
Aug 22, 2016 Aug 22, 2016

I have a checklist that has several questions and that the final part is the rating (Commendable 100%, Trained 99%-80%, Practiced 79%-65%, or Untrained 64% or less) based on the overall score. The problem is that if the value changes, the rating doesn't change along with it (86% will still show commendable for example).  Also, there are two check boxes that if either one is checked, then the score is automatically set to 0% and rating to "Untrained (Critical)."

var score = this.getField("949 Score").value;

if (score == 1) event.value = "Commendable";

else if (score <= .99 && score >= .80) event.value = "Trained";

else if (score <= .79 && score >= .65) event.value = "Practiced";

else if (score <= .64) event.value = "Untrained";

if (this.getField("949 Q1 Critical").value == "Yes") event.value = "Untrained (Critical)";

if (this.getField("949 Q4 Critical").value == "Yes") event.value = "Untrained (Critical)";

TOPICS
Acrobat SDK and JavaScript , Windows
655
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

correct answers 1 Correct answer

Community Expert , Aug 22, 2016 Aug 22, 2016

Did you check the field calculation order, as I've recommended?

Translate
Community Expert ,
Aug 22, 2016 Aug 22, 2016

Is the score field also calculated automatically? If so, then you need to check the field calculation order and make sure that this field is after the score field in that list.

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
Guest
Aug 22, 2016 Aug 22, 2016

Yes it's also calculated automatically. The score calculates just fine but the rating just won't commit to what the score says.

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 ,
Aug 22, 2016 Aug 22, 2016

Did you check the field calculation order, as I've recommended?

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
Guest
Aug 22, 2016 Aug 22, 2016

are you talking about tab order?

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 ,
Aug 22, 2016 Aug 22, 2016

Set Calculation Order Acrobat DC

It's different for other versions of Acrobat

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
Guest
Aug 22, 2016 Aug 22, 2016
LATEST

Thank you! Works like a charm now.  Try67 thank you as well for suggestion to begin with.

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