Skip to main content
Kinetic Community

Activity 4 - Display and Validate

 

Goal

Add Display and Validation options to a Form

Story

Lots of questions now, but my testing says customers are confused and only want to see the options that they need. I also need to make sure I'm getting all the fields that I need for my Task workflow.

Time to explore some display and validation options...

Steps

One of the most common features of a form, is hiding questions until a customer needs to see them. For example, only show an asset number field if you are referencing hardware (and then make it required)

Display:

Select a question or section and make it visible depending on the answer to another question

Editable:

Make a question Read Only based on another Answer

Required:

Set a question to Required based on a condition

Pattern:

Set a limiting pattern on a question (email address is the example) - ^[\w-\.]+\@[\w\.-]+\.[a-zA-Z]{2,4}$

Custom Constraint:

A different type of limit on a field. In this case add a max number of characters. (.length < 300)

What's Next

The form is working pretty well, but why are we letting the customer enter their own data? Lets fix that.

Download a completed example here.