Known Issue: Conditional formatting not applied when setting a control’s properties

  • 16 February 2021
  • 0 replies
  • 82 views

 

Known Issue: Conditional formatting not applied when setting a control’s properties

KB003680

PRODUCT
K2 Cloud
BASED ON
K2 Cloud

Issue

When you configure conditional formatting on a control based on the state of a control property such as Read-Only or Enabled, and you use the Set a control’s properties rule action to change the state of the property, the conditional formatting does not apply.

In this example we use the Read-Only property of the Comments control. The conditional format applies when the Read-Only property changes to false. The Set a control’s properties rule action changes the Read-Only property to false when a button is clicked.

Resolution

Transfer the new value of the Read-Only property to a Data Label control after the Set a control’s properties rule, and then use the value of the Data Label control in the conditional format.

Follow the steps below for an example of this configuration:

  1. Add a Data Label control to your view or form and untick the Visible property of the control.
    21452i8B35099CAE972908.png
  2. Edit the conditional format configuration and replace the Read-Only property with the value of the Data Label control.
    21453i611BE791D73046FA.png
  3. Edit the rule containing the Set a control’s properties rule action and add a Transfer data rule action.
    21454iE6E26AA9FCA503E0.png
  4. Configure the transfer rule by dragging the Read-Only property of the Comments control into the Data Label control. When the Read-Only property is set to false, the new value of the property transfers to the Data Label control and the conditional format applies.
    21455i87E1FCB9CA2395FC.png

0 replies

Be the first to reply!

Reply