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

Avatar

Avatar

mbrad233

Avatar

mbrad233

mbrad233

03-07-2014

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

View Entire Topic

Avatar

Avatar

sonya1

Avatar

sonya1

sonya1

04-07-2014

Yes it can be written

Try this out

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

{

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

xfa.host.messageBox("formfield1");

}

else {

}