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

To calculate the values of check boxes but have a Syntaxerror!

New Here ,
Nov 23, 2023 Nov 23, 2023

Copy link to clipboard

Copied

I am very new to this and from reading threads i ihave found a way to calculate a sum when checkboxes are ticked.

event.value = 0;

if(this.getField("Check Box34").value!"OFF")event.value+=11900;
if(this.getField("Check Box35").value!"OFF")event.value+=19575;

 

I am getting a SyntaxError: Missing ) after condition 2: at line 3

 

Please can you help me?

TOPICS
Create PDFs , JavaScript , PDF forms

Views

93

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
Community Expert ,
Nov 23, 2023 Nov 23, 2023

Copy link to clipboard

Copied

LATEST

Use !="Off" not !"OFF"

Votes

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