Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Changing the background of a form field1 when two form field conditions are met?

Avatar

Level 1

Is it possible to write a JavaScript for:  If formfield1 = "text" and formfield2 > 9999 then background color of formfield1 = 255,255,255 and message box = "blah, blah, blah", else do nothing

1 Reply

Avatar

Level 2

Yes it can be written

Try this out

if(formfield1.rawValue == "text" && formfield2 > 9999)

{

formfield1.fillcolor = "255,255,255";

xfa.host.messageBox("formfield1");

}

else {

}