This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
When developing K2 forms, there may be a need to show that a Control or a Field is empty. Not only should the form display it empty, but also draw attention to it with different colors so users know the field must be filled out.
Use a combination of Conditional Styling and logic to accomplish this.
Before You Begin
Make sure that the Form/View is ready to go with the controls that need the color change on them. Also, ensure that you have a plan for the logic that will be used.
1. Click on the control where the color change should appear, and edit the Conditional Style/Format for the control.
2. Choose the color that will be used as well as the Style that will be used. (ie. Fill in Control, Show border etc.)
3. Once the Style is selected, configure the logic that will be used. This could be if the Control is empty, if it has a specific value, etc.