Skip to main content

I am using Nintex forms 2013. I have a need where I need to set the color of a specific single line text box controlĀ  based on its "name" (or a ClientID JS variable) and another condition.

I am already using formatting rules to achieve this, but I have multiple fields that I need to color, and writing rules and managing them for every control gets tedious. Hoping there is a central way to do this via CSS/JS.

I am imagining something like this:

If (

(nameofcontrol = ABC

AND

<myothercondition>)

then

Setbackgroundcolor = #FFFFFF)

Inside an if condition you could set this with jquery

$("#yourControl").css("background-color","yellow");


Reply