Skip to main content
Known Participant
June 19, 2016
Question

Stop calculations

  • June 19, 2016
  • 1 reply
  • 384 views

I have this script attached two different buttons one to halt the calculations and the other button to perform the calculations:

   // Turn Calculations On

   this.masterCalc = this.calculate = true;

   this.calculateNow();

   // Turn Calculations Off

   // Use Master Calc to control calculations in other areas

   this.masterCalc = this.calculate = false;

What I would like to do is, is to apply these commands to only certain fields, not the entire form and all the fields. Like field1, field2, field3, field4 and leave the rest of the fields alone.

Can someone please tell me how would I add the named fields to the turn on/off calculation script above? Thanks for the help.

This topic has been closed for replies.

1 reply

Inspiring
June 19, 2016

Do you know how to execute conditional blocks of code?

You will need all the calculations you want conditionally executed to use the "Custom JavaScript calculation" option. You then could add code to test if your flag not to calculate was set  and if so then skip the calculation script;

pdfUser1Author
Known Participant
June 19, 2016

What would the script look like? I learn more from example. Would you mind showing me an example?