• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Field Not Updating

Community Beginner ,
Nov 15, 2021 Nov 15, 2021

Copy link to clipboard

Copied

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;

TOPICS
Acrobat SDK and JavaScript

Views

209

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Nov 15, 2021 Nov 15, 2021

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

Votes

Translate

Translate
Community Beginner ,
Nov 15, 2021 Nov 15, 2021

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines