Skip to main content
jant45441726
Participant
Feb 24, 2017 6:52 AM UTC
Question

Change calculation in several forms via script

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 is closed to new replies. Start a new post to keep the conversation going.

5 replies

Bernd Alheit
Community Expert
Community Expert
Feb 24, 2017 9:02 AM UTC

What kind of protection? What kind of calculation?

Translate
jant45441726
Participant
Feb 24, 2017 11:10 AM UTC

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;
}

Translate
Bernd Alheit
Community Expert
Community Expert
Feb 24, 2017 11:15 AM UTC

What kind of password protection?

Translate