Skip to main content
Inspiring
Nov 15, 2021 3:13 PM UTC
Answered

Field Not Updating

var d will not update when I change var f unless. Initially it works but any changes made to var f will not update var d. Thanks in advance for any help.

 

var f = Number(this.getField("Text2").value);
var d = (f * 60 + 1440);
var s = this.getField("STOPDATE").valueAsString;
var t = this.getField("Time3").valueAsString;
if ((s=="")||(t==""))event.value = "";
else event.value = d;

This topic is closed to new replies. Start a new post to keep the conversation going.
defaultj2i94ronq2eaCorrect answer
Inspiring
Nov 15, 2021 3:43 PM UTC

I found the calculation order needed to be changed. Problem solved.

1 reply

defaultj2i94ronq2eaAuthorCorrect answer
Inspiring
Nov 15, 2021 3:43 PM UTC

I found the calculation order needed to be changed. Problem solved.

Translate