Skip to main content
 

Question

 

How are conditional styles used?




 

Answer

 

Conditional styles can be used on both Forms and Views and can change the styling of many different controls.

 

 

 

In this example a View is going to have conditional styling added to a row:

 

 

 

1. In K2 Designer a list view has been created and a row that returns the ID values of the associated list will be modified to return a conditional style to a row in a specific state:

 


16815iFB8EA821EC46B460.png

 

 

 

The first step in this process is to select this row.

 

 

 

2. After the row has been highlighted you will next need to open the wizard for Conditional Styles found in the Properties section of the selected row:

 

 

 

13587i5AA8FD966415927F.png

 

 

 

3. In the Conditional Formatting wizard select Add to add a new condition you will then see the Add Conditional Formatting wizard:

 

 

 

11678iC621127D9DC7F664.png

 

 

 

4. The first item you will need to add is a unique name for your condition. Next click the add button to add a new condition:

 

 

 

14024iFB8B26A185C612A5.png

 

 

 

5. When you have included the condition you will be prompted with additonal input in the form of the Style Builder:

 

 

 

14138iF4713B80AEB53227.png

 

 

 

6. You will next need to add what styling you are wanting to achieve and once this has been completed click okay to complete the process.

 

 

 

7. Now that the configuration has been completed you may now save the view and test it to check if the conditional style has been applied:

 

 

 

16851i2494C8A4A02E137D.png

 

 

 

As seen in this example a unique conditional style has been applied successfully.



 

Hi, there is a typo in this KB, the steps indicate how to confitionally format a COLUMN not a ROW as stated at the top of the article. As far as I know, rows cannot be conditionally formatted in K2.


Reply