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

  • 14 July 2016
  • 1 reply
  • 7 views

Badge +4

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)


1 reply

Userlevel 6
Badge +16

Inside an if condition you could set this with jquery

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

Reply