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

Field with Script - doesn't execute unless I edit the same or any other field

New Here ,
May 17, 2020 May 17, 2020

Copy link to clipboard

Copied

Hello

I have a $ field that I check to see if it's >= to another.  If it is - I want the Next Field to Not Display

It works but I unfortunately have to click into any field again and step off for the script to execute. 

var v1 = Number(this.getField("Step2_a").value);
var v2 = Number(this.getField("Step2_b").value);

if (v2 >= v1) {
this.getField("Step2_c").display = display.hidden;
}

else {
this.getField("Step2_c").display = display.visible;
}

 

TOPICS
Creative Cloud

Views

260

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
LEGEND ,
May 17, 2020 May 17, 2020

Copy link to clipboard

Copied

LATEST

What action do you attach it to? Makes all the difference.

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