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

One Field shows results if other fields have been used.

Community Beginner ,
Oct 19, 2017 Oct 19, 2017

I have a field (Field1) that gets information from a calulated field (Field2) fed by three other section group fields (fieldgroupTotal-1,fieldgroup total-2, fieldgroup Total-3). Everthing works well.  I want field 1 to only show something once all THREE fieldgroup totals have a number.

var v = this.getField("Total_Score").valueAsString;  if (v=="") event.value = "";

else {

    var score = Number(v);

    if (score>=3 && score<=7) event.value = "Low";

    else if (score>=8 && score<=12) event.value = "Medium";

    else if (score>=13 && score<=15) event.value = "High";

    else if (score<=0) event.value = "Not Started";

}

This Script works great, I just now need it to only work if all three groups have had an enterie inside of that group selected.

TOPICS
Acrobat SDK and JavaScript , Windows
186
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
no replies

Have something to add?

Join the conversation