Expand my Community achievements bar.

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 {

}