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
  • Demonstration
  • Example Form with Database Table
  • Database table fields
  • Automatic Data Field Input elements
  • Example Form with Custom Data
  • Custom fields
  • Handling form submission
  • Adding Custom Logic to Forms
  • Using the Form
  1. App Editor
  2. Page Editor

Working with Forms

PreviousData DesignNextUsing Forms

Last updated 1 year ago

Within Zingy, a form represents a unique type of page specifically designed to engage users in data input and facilitate the editing of existing data. Its primary objective is to establish a seamless interaction between the user and the application, enabling efficient data manipulation and updates.

Normally a form is associated with a , but you can also create custom forms that are not attached to any specific database table. Examples for both of these cases is described below.


Demonstration

The video above demonstrates a database attached form and a custom form, which are explained in more detail below.


Example Form with Database Table

In this example, we will be creating a form page and associate it with a database table named Employees.

This is done with the Table setting for the form by selecting the specific database table as shown below.

Database table fields

The image below shows the fields for the Employees database table. Please observe each field's type and sub-type.

Automatic Data Field Input elements

The page editor automatically creates data field input elements for all the fields in the associated database table. The following is a summary that outlines how the page editor employs the type and sub-type information of each field to determine the specific page element to be utilized for the data field input.

Field Type
Field Sub-Type
Element created

Text

any

Text

Multi-line

Text

Multi-line HTML

Text

Email

Text

Phone

Text

Password

Text

List of Values

Text

Files

Composite element that allows you to upload files.

Numeric

-

Numeric (decimals)

-

Date/Time

-

Composite element that allows you to select date and time.

Yes/No

-

Large Numeric

-

The page editor will create the data field input elements in two different styles:

  • Style2: where they are directly utilized.

Feel free to choose a style that gels with your app. The general functionality of the form is not affected by the style chosen.

  • The First Name, Last Name fields will use an input element with type set to Text.

  • The Notes field will use a multi-line element.

  • The Department field will use a dropdown element.


Example Form with Custom Data

In this example, we will generate a custom form page that is not linked to any specific database table within your application.

This is done with the Table setting for the form by selecting Custom (No Table) option as shown below.

Custom fields

The page editor is capable of automatically generating data field input elements, even when utilizing the Custom (No Table) option. For this you will be need to define fields based on your custom requirement. The definition of each field is similar to the database fields where a type and sub-type is set along with any other required attributes.

Here we will use fields similar to the Employees database table used in the first example as shown below:

Handling form submission

When you have a form attached to a database table, the data submission is handled automatically. However, in the case of a custom form, you manage the submission manually through Page Flow.

In the image above, the purple function block named sendFormDataToMyCustomPlace is an example placeholder function block used to indicate that you need do take some action on the data entered by the user.


Adding Custom Logic to Forms


Using the Form

element with set to Text.

element

element with turned on.

element with set to Email.

element with set to Phone.

element with set to Password.

element with set to the field's values.

element with set to Number.

element with set to Number.

element

element with set to Number.

Style1: where the field input elements are inside a

For more information on database table fields, please see .

Based on the information about the type and sub-type of the fields you will observe the following in the :

Our discussion on blocks in this context is just a brief overview. For a more comprehensive understanding of Page Flow and its various blocks, we recommend referring to the dedicated , which delves into this topic and explores other blocks in greater detail.

The block allows you to handle various stages of a user interacting with your form. The submission for custom forms is handled via the Submit Tasks where you can take some custom action with the data entered by the user and the mark whether the operation was successful or a failure via the block. You then signal that your custom processing is complete by using the block.

allows you to add custom logic to forms (database-attached and custom forms). The following listing shows some important Page Flow blocks that are related to forms. For a complete listing of all Page Flow blocks, please see .

Please refer to the section for more information.

💻
Input Group
Database Tables
demonstration video
Page Flow
Page Flow section
Page Flow
Toolbox Blocks

Form Events

Form Data

Set Form Event Status

Set Form Event Status Message

Form Submit Complete

Lock/Unlock Form

Reset Form

Save Form with Data

Set Field Input Value

Get Field Input Value

Using Forms
Multi-line
Toggle Switch
Database Table
Form Events
Set Form Event Status
Form Submit Complete
Input
Multi-line
Input
Input
Input
Dropdown
Input
Input
Input
Video: Demonstration of forms.
flow parameter
Rich Text
options list
Form Settings: Database Table Selection
Employees database table fields
Form Settings: Custom
Form settings: Defining custom fields
Handling custom form submission.
Type
Type
Type
Type
Type
Type
Type