Instant Estimate +44(0)1908738254
YOUR EXPERT RPA PARTNER

Team up with our RPA strategy and tech specialists for maximum automation impact

Find out more
Harness the power of UiPath in your business.
WATCH NOW

Save money and spend more time on priority work.

Book consultation
READY, SET, AUTOMATE

Let's choose, design and deploy a process automation solution for your business.

Find out more
TRANSFORM YOUR BUSINESS

Let's analyse your business to discover opportunities for innovation and automation.

Find out more

Begin your business transformation journey

Book consultation
AUTOMATE EVERY FUNCTION

Automate where it matters most. Scale to solve challenges in every area

Find out more
GIVE EVERY TEAM THE TOOLS FOR SUCCESS

Equip people with user-friendly solutions that save time and make work easier

Find out more

Which business problem
can we solve first?

Book consultation
28 August 2015

How to Validate Data Using a Custom Validation Pattern in K2 SmartForms

Validate Data K2 SmartForms

In K2 SmartForms you can easily validate any text input field by using standard regular expressions. When you select an input field you can assign a pattern to validate it under validation in the properties section.

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.

 

Free K2 Five Upgrade Review

Validate Data K2 SmartForms

K2 SmartForms Custom Control Validation – 1

K2 SmartForms comes with a set of standard validation patterns but you are able to add / edit your own custom patterns.

K2 SmartForms Custom Control Validation - 2

K2 SmartForms Custom Control Validation – 2

In this example we need users to be able to specify time in an hh:mm format, with 00:00 included. We simply add our regular expression in the pattern field and specify a validation error message to be displayed should the user not use the correct input format.

K2 SmartForms Custom Control Validation - 3

K2 SmartForms Custom Control Validation – 3

When the application is running fields that are valid display as normal.

K2 SmartForms Custom Control Validation - 4

K2 SmartForms Custom Control Validation – 4

Fields that are not using the correct input format will be highlighted in red and the validation message specified in the setup of the pattern will be displayed if the user hovers over the marked field.

K2 SmartForms Custom Control Validation - 5

K2 SmartForms Custom Control Validation – 5

It is important to note that all the patterns you create are global and can be used across all the views / forms in your application and not only within the specific view you created it in.

Need further technical advice or support?