Login to participate
Endpoint Management & Virtualization VideosRSS

Custom Form Validation in Workflow Solution

ChrisBern's picture

In this 10-minute video, I will demonstrate a few simple examples of custom form validation in a web forms project. Specifically, I create a simple web form in Workflow Solution which asks for an email address and a start/end date range. Then, I add custom validation to the web form to ensure that the user has entered an email address that matches standard email address format (x@y.com). Finally, I also add custom validation to ensure that the start date precedes the end date, and then I demonstrate the validation errors which occur when the data is improperly entered on the form.

Keywords: Form builder, textbox, datepicker, use custom validation, button, required field, model, regex, find common pattern, string, process variable, error message, date greater than rule

Video Upload: 
lone_ranger's picture

Good Stuff

Good video Chris. Keep up the good work.

danny.heffner@hsc.utah.edu's picture

Problem with Validating times

Very nice.
With your help, Chris, I built a similar validation in a form, but since I am use the Date/Time picker (instead of just the Date picker), I don't have the option of customizing validation inside of the component. To accomplish my validation, I have done the following:

  1. Create a box somewhere in your form
  2. Doubleclick on the box you just created
  3. Click on the Functionality tab
  4. In the Output Paths: field, find the button that you want to use to trigger the validation, then put the black dot in the circle next to Optional for that button
  5. Set the Visible: field to "False"
  6. Check the Use Custom Validation: box, then follow Chris's instructionsfor creating the Custom Validation Model