Zingy Docs
Visit our websiteTry a DemoPricingContact
  • Introduction
  • 🎛️Dashboard
    • Overview
    • Apps
    • Account Profile
    • Billing - View Invoices
    • Billing - Payment Methods
    • Billing - Subscription
  • 💻App Editor
    • App Components
    • App Editor Tour
    • App Settings
    • App Users
    • App User Groups
    • Publishing your App
    • Pages and Forms
      • Create a Page
      • Create a Structured Page
      • What is a Structured Page ?
      • Create a Form
      • Page Editor
      • Working with Forms
    • Page Editor
      • Page Editor Tour
      • Adding Page Content
      • Adding Content to Structured Pages
      • Working with Page Elements
      • Page Element Settings
      • Responsive Design
      • Padding and Margin
      • Editing Text
      • Using AI Wiz in the Page Editor
      • Built-in elements
        • Link
        • Image
        • Spacer
        • Flexible Area
        • Layout Container
        • Layout Row
        • Layout Column
        • 1 Column
        • 2 Columns
        • 3 Columns
        • Add Column
        • Table
        • Table Row
        • Table Column Cell
        • Table Heading Cell
        • Table (3 cols)
        • Table (4 cols)
        • Input
        • Checkbox
        • Toggle Switch
        • Dropdown
        • Multi-line
        • Label
        • Button
        • Button Group
        • Input Group
        • Button Toolbar
        • Menubar Holder
        • Menubar Collapsible
        • Menubar
        • Menubar Item
        • Menubar Item Link
        • Menubar Style1
        • Menubar Style2
        • Menu Item
        • Popup Menu
        • Popup Menu Item
        • Menubar Popup Menu
        • Popup Menu Style1
        • Popup Menu Style2
        • Popup Menu Separator
        • Card
        • Card Group
        • Card Style1
        • Card Style2
        • Card Style3
        • Alert
        • Badged Text
        • Collapsible Area
        • Data Table
        • Stripe Payment
        • Form
        • Menubar Login Info
        • Data Design
      • Working with Forms
      • Using Forms
      • Page Preview
    • Page Settings
    • Page Flow
      • Block Anatomy
      • Toolbox Blocks
        • Set Content
        • Get Content
        • Badged Text
        • Alert Text
        • Status Animation
        • Set Style
        • Set CSS
        • Set Input Value
        • Get Input Value
        • Set Toggle Switch State
        • Get Toggle Switch State
        • Set Input Feedback
        • Enable/Disable Element
        • Set Element Attribute
        • Get Element Attribute
        • Get Element by Name
        • Element
        • URL Parameter Value
        • Navigate Page
        • Timer
        • Timer Repeat
        • Show Popup Form
        • Show Information Popup
        • Show Confirmation Popup
        • Popup Form Data
        • Collapsible Area Action
        • Mouse/Keyboard Action
        • Event Action
        • Action/Event Info
        • Show Menu
        • Menu Text
        • Menu Index
        • Write Log Message
        • Log Category
        • Data Table Action Menu Customize
        • Data Table Attach Form
        • Data Table Add Action
        • Data Table Load Next Page
        • Data Table Load Prev Page
        • Data Table Refresh
        • Data Table Custom Query
        • Data Table : Table Name
        • Data Table : Data
        • Content from Data Design
        • Set Content in Data Design
        • Get Content in Data Design
        • Get Element Attribute in Data Design
        • Set Element Attribute in Data Design
        • Set Style in Data Design
        • Set CSS in Data Design
        • Set Input Value in Data Design
        • Get Input Value in Data Design
        • Get Toggle Switch State in Data Design
        • Set Toggle Switch State in Data Design
        • Set Input Feedback in Data Design
        • Enable/Disable Element in Data Design
        • Initialize Toggle Switch in Data Design
        • Event Action in Data Design
        • Collapsible Area Action in Data Design
        • Data Record Count
        • Data Record at Index
        • Data Record Loop
        • Data Record Info
        • Data Record Loop Index
        • Data Record ID
        • Data Table Name
        • Data Query Name
        • Data Read
        • Data Read Next
        • Data Read Previous
        • Data Lookup
        • Data Lookup with ID
        • Data Status
        • Data Add Record
        • Data Update Record with ID
        • Data Delete Record with ID
        • Data Input Popup
        • Lock/Unlock Form
        • Save Form with Data
        • Reset Form
        • Set Form Event Status
        • Set Form Event Status Message
        • Form Submit Complete
        • Set Field Input Value
        • Get Field Input Value
        • Form Data
        • Form in Edit Mode
        • Form Events
        • Execute Connection Command
        • Execute API Call
        • Connection Data
        • Connection Error
        • API Call Connection
        • Connection
        • Connection Command
        • Cloud Flow Invoke Hook
        • Cloud Flow : URL of Web Hook
        • HTTP Post
        • HTTP Get
        • HTTP Data
        • HTTP Error
        • Date
        • Custom Code
        • Date from Text
        • Get Object Property
      • Coding in Page Flow
      • Zingy API For Page Flow
      • References
        • Value Types
        • Popup Customization
        • Prerequisite for Dynamic Content block examples
        • Prerequisite for Data examples
    • Dynamic Content
    • Data
      • Database Tables
      • Database Queries
      • Data Tool
    • Cloud Flow
      • Cloud Flow Editor
      • Block Anatomy
      • Toolbox Blocks
        • Data Update Records
        • Data Delete Records
      • Coding in Cloud Flow
      • SDK/Library Integration
    • Media
    • Connections
      • Services
        • Stripe
        • Sendgrid
        • Twilio
        • API Call
        • API Key
Powered by GitBook
On this page
  • Init Tasks
  • Pre-Validate Tasks
  • Post-Validate Tasks
  • Submit Tasks
  • Success Tasks
  • Error Tasks
  1. App Editor
  2. Page Flow
  3. Toolbox Blocks

Form Events

PreviousForm in Edit ModeNextExecute Connection Command

Last updated 1 year ago

Block Information

Available in: Page Flow

Toolbox Category: Form

Block Type:

The Form Events block is used to handle various events related to a form.


Init Tasks


Pre-Validate Tasks

You can implement any supplemental validation or input correction tasks here.

Please note that you cannot execute a background task and wait for it's completion here.


Post-Validate Tasks

Please note that you cannot execute a background task and wait for it's completion here.


Submit Tasks


Success Tasks

Please note that you cannot execute a background task and wait for it's completion here.


Error Tasks

This block only works when used in Form type pages. See to learn about how forms work.

The block consists of Init Tasks, Pre-Validate Tasks, Post-Validate Tasks, Submit Tasks, Success Tasks and Error Tasks which are discussed below.

The Init Tasks , is used to implement logic during the initialization process of the form.

If you plan on adding logic that takes time to complete (i.e. executes in the background), we recommend locking the form using the block and unlocking when the task is complete.

The logic in the Pre-Validate Tasks is invoked after the user clicks the submit button or when the is executed without a valid data object attached its . This occurs prior to Zingy's automatic field input validation process.

Use the or blocks to retrieve the values entered by the user.

For any input corrections use the or blocks to set the value.

Use the block by setting its to OK for continuing with the processing, or ERROR to stop further processing.

You may also use the to report any specific error message to the user.

The logic in the Post-Validate Tasks is invoked after Zingy's automatic field input validation process but prior to the submission of the form's data.

To access the data entered by the user, use the block for both retrieving and setting the values of the fields. At this stage, avoid using the or blocks since the system has already progressed beyond the point of reading field input values.

Use the block by setting its to OK for continuing with the processing, or ERROR to stop further processing.

You may also use the to report any specific error message to the user.

The logic in the Submit Tasks is invoked only in the case of custom forms (where no database table is attached).

Implement your own form data submission or processing logic here. You can access the form's data using the block.

Once you are done processing or submitting the data, use the block for the system to proceed with the next step.

Refer to the block for an example.

The Success Tasks allows you to execute logic when the form's data has been submitted successfully.

You can use the block to retrieve the data that was submitted.

You may also use the to report any specific message to the user. This will override the form's success message.

The Error Tasks allows you to execute logic when there was an error in submitting the form's data.

You can use the block to retrieve the data entered by the user..

You may also use the to report any specific message to the user. This will override the form's error message.

💻
Working With Forms
Lock/Unlock Form
Get Field Input Value
Get Input Value
Set Field Input Value
Set Input Value
Set Form Event Status Message
Form Data
Set Field Input Value
Set Input Value
Set Form Event Status Message
Form Data
Form Submit Complete
Form Submit Complete
Form Data
Set Form Event Status Message
Form Data
Set Form Event Status Message
Save Form with Data
Set Form Event Status
Set Form Event Status
flow parameters
flow parameter
flow parameter
value parameter
Dropdown configuration setting
flow parameter
Dropdown configuration setting
flow parameter
flow parameter
flow parameter
Regular
Form Events block