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

Override Custom Calculation Multiple Text Fields

New Here ,
Jun 20, 2019 Jun 20, 2019

Copy link to clipboard

Copied

I have 3 text fields that populate from another text field (Chronological age), each of the 3 text fields has a custom calculation based of the chronological age. The fields are working great but I want the ability to over ride them. I know I could possibly enter this as a custom validation in the Chronological Age field, but that field already has a custom calculation working it. I am fine with creating a check box that when checked, the other 3 text fields do not calculate and are left blank, but when I attempted to use the codes already presented in the forum they did not work. The code I am using in the 3 text fields is similar and starts with"

var v = this.getField("ChronologicalAge").valueAsString;

if (v=="") event.value = "";

else {

var score = Number(v);

if(score>=0 && score<=1.99) event.value = "Chronological age snapshot of 1 month old babies in this area:...."

Any help would be appreciated, this is the last step and I am dying to get this done! Thank you!

TOPICS
PDF forms

Views

117

Translate

Translate

Report

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