Forms are a key component of the process. They define which fields to show a user when the user is assigned a specific task.
Forms are defined into the process YAML file, and they have the following structure:
# myProcess.yml forms: # the form key should start with a letter, and can only contain letters and numbers. myForm: # Form display name name: My Form # rows to be displayed in the form. Required. rows: # Each row can be: # A title - _title: Personal Information # A statement - _statement: Please complete your personal information below # An HTML snippet - _html: <p>This is an <strong>HTML</strong> snippet</p> # A field of the process main table - email # A field of a table connected through a relationship field - officeLocation.name # An array of fields, which will be displayed in the same row - [firstName, middleName, lastName, officeLocation.name] # field with overridden properties # The item key is the id of the field # The item properties will override the field properties. - active: readOnly: true - myTableField: columns: - myField - anotherField # a field group - _group: summary # outcomes represent actions the user can take after filling out this form outcomes: approve: Approve reject: Reject
You can find more information in the following pages, and in the Process Forms YAML Reference documentation.