Skip to main content
Participant
January 7, 2022
Answered

Another Formula to JavaScript conversion

  • January 7, 2022
  • 1 reply
  • 573 views

I have this code from everything I found on the internet:

 

var E = this.getField( "Text16").value; // the value of field E is line 7;

 

var F = this.getField( "Text17").value; // the value of field F is line 8;

 

var G = this.getField( "Text19").value; // the value of field G is line 10;

 

= MIN(E,F,G) ;// else value is minimum of line 7, 8 or 10;

 

Can anyone help me figure out why this is not returning a value?  Please note that all of these fields are calculated values.  Not sure if that matters.

This topic has been closed for replies.
Correct answer try67

Is this a calculation script? If so, change the last line to:

 

event.value = Math.min(E,F,G) ;

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
January 7, 2022

Is this a calculation script? If so, change the last line to:

 

event.value = Math.min(E,F,G) ;

Participant
January 7, 2022

This worked!!!!

 

Thank you  100x over.