SubmitWithoutSubmission - smbc-digital/form-builder GitHub Wiki

Submit without submission

Overview

SubmitWithoutSubmission submits a form where there is no external processing to be done eg. no Verint Case, no Payment to be handled, or no Uniform Case. It it also suitable for forms with Bookings without payment as Formbuilder can handle Confirming the appointment.

The syntax is:

  • BehaviourType: "SubmitWithoutSubmission"
  • conditions: List

NOTE - You must use GenerateReferenceNumber and the associated properties in the Schema, refer to the Generating Reference Numbers page for details.

Example

The below json is a shortened version of a form with a Booking that submits a form using SubmitWithoutSubmission

{
  "FormName": "Book an Independent Mobility Assessment",
  "FirstPageSlug": "booking",
  "GenerateReferenceNumber": true,
  "GeneratedReferenceNumberMapping": "Reference",
  "ReferencePrefix": "test-",
  "Pages": [
    {
      "Title": "Booking",
      "PageSlug": "booking",
      "HideTitle": true,
      "Elements": [
        {
          "Type": "Booking",
          "Properties": {
            "QuestionId": "booking",
            "Label": "Select a date and time",
            "LabelAsH1": true,
            "BookingProvider": "SMBC",
            "CustomValidationMessage": "You must select a date and time",
            "CustomerAddressId": "address",
            "AutoConfirm": true,
            "CheckYourBooking": true,
            "SearchPeriod": 40,
            "AppointmentTypes": [
              {
                "Environment": "local",
                "AppointmentId": "a-guid"
              }
            ]
          }
        },
        {
          "Type": "Button",
          "Properties": {
            "ButtonId": "continue"
          }
        }
      ],
      "Behaviours": [
        {
          "conditions": [],
          "behaviourType": "SubmitWithoutSubmission",
          "pageSlug": "success"
        }
      ]
    } 
  ]
}
⚠️ **GitHub.com Fallback** ⚠️