Skip to main content
jant45441726
Participant
February 24, 2017
Question

Change calculation in several forms via script

  • February 24, 2017
  • 1 reply
  • 683 views

I have several password protected filled forms with a calculation error. Is it possible to change the calculation without open and change all the forms?

This topic has been closed for replies.

1 reply

Bernd Alheit
Community Expert
Community Expert
February 24, 2017

What kind of protection? What kind of calculation?

jant45441726
Participant
February 24, 2017

It is password protected.

A custom calculation script:

var mid = 2.5;
var max = mid + 0.125;
var min = mid - 0.125;
var val = +getField("Rcoil").value;


if (val <= max && val >= min) {
    event.value = "OK";
    event.target.fillColor = color.green;
} else {
    event.value = "Not OK";
   event.target.fillColor = color.red;
}

Bernd Alheit
Community Expert
Community Expert
February 24, 2017

What kind of password protection?