Display User Friendly Error Messages in K2 SmartForms

When developing K2 SmartForms, most developers tend not to implement user friendly messages. In this blog, we will go through step-by-step how to implement error handling that results in a  user-friendly K2 error message being displayed to the users when an error is raised.  The method for doing this in K2 SmartForms is similar to how we do it for conventional .NET applications.


K2 Automated Testing Software

BenchQA allows full test automation of K2, including fully automated K2 SmartForms and K2 Workflow testing. It promotes test driven development for K2 and ensures continued quality assurance for K2 solutions. Easily apply changes to test cases to accommodate changes to K2 apps and ensure all apps are regression tested to avoid defects and assure continuous quality.


BenchQA Logo


Free K2 Five Upgrade Review


Let’s see how to implement this.

Registration is required to view the full article. Click here to register FREE…

The screenshot below shows an example implementation with each of the steps to follow to implement error handling in K2 SmartForms that displays user-friendly messages upon the “If an error occurred” SmartForm condition:


First, use the “If an error occurred” condition to catch the error and then transfer the error message to the form/view parameter.


We must use the action “continue to next execution” otherwise the rule will stop executing after transferring the error message to the parameter.

Please login or register to access the full article.

You may also like

Please complete the below form and a member of the Velocity IT team will call you back.