Skip to main content
Nintex Community Menu Bar
Answer

Change button control colours via rule

  • August 3, 2023
  • 3 replies
  • 155 views

Forum|alt.badge.img+8

i want to know if it is possible to change colours of a button with event driven rule?

i use javascript to set button colours, and they are set depending on the ‘Tooltip’ field.

i create a rule, and the action set’s the button control tooltip property.

this works, as i show a message to see that it has passed value correctly.

the button colour however doesn’t change

i have also tried conditional formatting on the button colour to change depending on the tooltip value, but that doesn’t work either

anyone have a solution?

Best answer by tbyrne777

Would a “Conditional Format” on the button work? You can tie the condition to some hidden value on the form that you set via event driven rule

3 replies

Forum|alt.badge.img+15
  • Scholar
  • Answer
  • August 3, 2023

Would a “Conditional Format” on the button work? You can tie the condition to some hidden value on the form that you set via event driven rule


Forum|alt.badge.img+8
  • Author
  • Rookie
  • August 3, 2023

i have a conditional format  - but for the tooltip of the button
so maybe, add  datalabel on view
once i up date control tooltip, then transfer data to datalabel, and have conditional formatting on that datalabel?

will try that


Forum|alt.badge.img+8
  • Author
  • Rookie
  • August 5, 2023

yeah that has done the trick