Skip to main content
Participant
Jan 7, 2022 9:32 PM UTC
Answered

Another Formula to JavaScript conversion

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 is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Jan 7, 2022 9:47 PM UTC

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

 

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

2 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Jan 7, 2022 9:47 PM UTC

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

 

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

Translate
Participant
Jan 7, 2022 10:20 PM UTC

This worked!!!!

 

Thank you  100x over.

Translate