K2

How to define and use Unbound Rules in K2 SmartForms

The need to implement the same set of rules is pretty common in most applications. Up until K2 v.4.6.8 the only way to do that was to implement the wanted set of rules on a specific control and then “call” that specific control again every time you want to execute the same functionality. The other (frowned upon) option was to duplicate rules on each control.

1 - Creating an unboud rule in K2 SmartForms Designer

1 – Creating an unboud rule in K2 SmartForms Designer

With K2 SmartForms v4.6.9+ unbound rules have been brought in. This effectively allows you to specify a set of rules without having to bind it to a specific event.

To add an unbound rule you simply add a new rule like before, but instead of selecting an event you just provide a name for the rule and set up your desired sequence of conditions and / or actions.

2 - List of Unbound Rules in K2

2 – List of Unbound Rules in K2

All the unbound rules you have created (view / form specific) will be displayed together with all your existing rules in the “(Unbound)” section.

3 - Uses an Unboud Rule in K2 SmartForms

3 – Uses an Unboud Rule in K2 SmartForms

To use an unbound rule you simply add an “Execute another rule” action and select the unbound rule you wish to use.

This is only one of the exciting new features released with the K2 v4.6.9+ versions, to discover more features view our blog on the topic.

You may also like

Leave a comment

PODCAST  |  Why you need to establish a K2 Center of Excellence today

Interview with Arno van Rooyen, CEO, Velocity