cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
prasannaadavi
Nintex Newbie

Nintex forms - Set background Color of a control with CSS/Javascript

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)

Labels: (2)
Reply
1 Reply
fhunth
Nintex Newbie

Re: Nintex forms - Set background Color of a control with CSS/Javascript

Inside an if condition you could set this with jquery

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

0 Kudos
Reply