Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

Custom calculation help

$
0
0

I am getting a syntax error with this formula. SyntaError; missing; before statement1: at line 2  Can someone assist.  Thank you.

 

Var v1 = ( this.getField(“Total1”).value + this.getField(“Total2”).value + this.getField(“Total3”).value + this.getField(“Total4”).value + this.getField(“Total5”).value + this.getField(“Total6”).value + this.getField(“Total7”).value + this.getField(“Total8”).value + this.getField(“Total9”).value + this.getField(“Total10”).value + this.getField(“Total11”).value + this.getField(“Total1”).value + (this.getField(“Total2”).value );

If (v1 > 40) event.value = 40;

else event.value = (v1);


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>