Server Rules

You can use server-side rules to improve the performance and user experience of SmartForms. Server-side means that rules are executed by the K2 server before the form is sent to the browser on your device or computer, while Client-side means that the rules are executed by the browser on your device or computer. When a form or view uses client-side rules at runtime, conditions and actions are executed individually by the browser on your device or computer, potentially resulting in back-and-forth calls between the browser and the K2 server for each action that needs to use the server. By using server-side rules where possible, you can execute the rule set once on the server before the view or form is sent to the browser. Because the rules are executed by the server rather than by the browser, server rules can help to improve the runtime performance and user's experience of the SmartForm.

Server-side rules are available when a view, form, subview, or subform loads (using the When the server loads… event), and are typically used to enable or disable controls, enable or disable the visibility of controls or views, collapse or expand a view, populate a control, open a worklist item, or change the appearance of a form based on certain conditions.

Use server-side rules to: