Solved

Change button control colours via rule

  • 3 August 2023
  • 3 replies
  • 86 views

Badge +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?

icon

Best answer by tbyrne777 3 August 2023, 14:27

View original

3 replies

Userlevel 5
Badge +13

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

Badge +8

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

Badge +8

yeah that has done the trick

Reply