Highlighted

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

New Here ,
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

185

Likes

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

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

New Here ,
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

186

Likes

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
May 17, 2020 0
Most Valuable Participant ,
May 17, 2020

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
May 17, 2020 0