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

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

New Here ,
Nov 23, 2023 Nov 23, 2023

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
295
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 ,
Nov 23, 2023 Nov 23, 2023
LATEST

Use !="Off" not !"OFF"

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