Custom Field Validations on Each Step of Enrollment Wizard

This workflow performs custom validations on each step of the Anthology Student Enrollment wizard. This workflow example is described at a high level using screen captures for the main sequences, rather than describing each step in detail. The workflow is triggered by a Saving event using the contract Cmc.Nexus.Contracts > Cmc.Nexus > Person.

Note: When the Student Enrollment wizard uses a Person Saving event, each step only fills out a few fields in the Person.Students(0).StudentEnrollmentPeriods(0) entity based on the step Context.

The top level sequence contains a Switch activity based on the args.Context for each step of the enrollment wizard, plus a default case.

Enrollment Wizard Workflow Overview

  1. The first case creates an error message when the value "Homeschooled" is selected in the Previous Education field of the Enrollment wizard.

    Enrollment Wizard Step1

    Enrollment Wizard Step1

    Enrollment Wizard - Case 1

    The custom validation message for this case is as follows:

    Custom validation - Case 1

  2. The second case performs custom validations on the Program and Grade Level selections.

    • If the student's residence is in Alaska, the student is not allowed to enroll in a "Golf" program.

    • If Grade Level High School (8) is selected, an error message states "Grade Level cannot be High School".

      Note: You can hard code the grade level value to compare to (i.e., "8") or use a LookupReferenceItem activity instead.

    Enrollment Wizard Step 2

    Enrollment Wizard Case 2

    The custom validation message for this case is as follows:

    Custom Validation - Case 2

  3. The third case checks for an entry in the Start Term field.

    Enrollment Wizard Step 3

    Enrollment Wizard Case 3

    The custom validation message for this case is as follows:

    Custom validation - Case 3

  4. The fourth case checks for an entry in the Extern Start Date field.

    Enrollment Wizard Step 4

    Enrollment Wizard Case 4

    The custom validation message for this case is as follows:

    Custom validation - Case 4

  5. The last case checks for an entry in the Comment field.

    Enrollment Wizard Step 5

    Enrollment Wizard Case 5

    The custom validation message for this case is as follows:

    Custom validation - Case 5