Sign Up
Loading...

Data Types

Twidget supports six main data types to facilitate interactions within the platform. These data types are essential for defining inputs, outputs, and table fields, helping users understand the nature of the data being handled. The available data types in Twidget are as follows:

Text

  • Description: Represents any string of characters.

  • Usage: Used for fields or inputs that require text, such as names, descriptions, emails, etc.

  • Example: "Hello, World!"

Number

  • Description: Represents both integer and floating-point numbers.

  • Usage: Used for fields or inputs that require numerical values, such as age, price, score, etc.

  • Example: 42, 3.14

Boolean

  • Description: Represents a binary value (true or false).

  • Usage: Used for fields or inputs that require a true/false value, such as yes/no questions, toggles, etc.

  • Example: true, false

Date

  • Description: Represents dates and times.

  • Usage: Used for fields or inputs that require date and/or time values, such as birthdates, appointment times, etc.

  • Example: "2023-10-05T14:48:00.000Z"

Object

  • Description: Represents a collection of key-value pairs.

  • Usage: Used for fields or inputs that require structured data, such as JSON objects.

  • Example: { "name": "John Doe", "age": 30 }

File

  • Description: Represents file data.

  • Usage: Used for fields or inputs that require file uploads, such as documents, images, etc.

  • Example: {"filename": "document.pdf", "size": 1024}

Applications of Data Types

Data types in Twidget are used to:

  • Define Inputs: Specify what type of data can be entered into form fields.

  • Specify Outputs: Indicate what type of data will be generated or returned by a function or process.

  • Create Table Fields: Determine the types of data that can be stored in each column of a table, ensuring data integrity and appropriate handling.

Related Topics

Variables

Variables are essential building blocks in Twidget that allow you to store and manipulate data dynamically within your no-code applications. They enable you to create flexible and interactive applications by holding values that can be changed and referenced throughout your workflow. Creating Variabl...

Inputs

Overview. In Twidget, inputs are essential elements that allow you to configure endpoints and functions. Events do not use inputs. Endpoint Inputs. Endpoint inputs are used to retrieve data from requests. The available types of endpoint inputs are: 1. Path: Variables that are part of the URL path. 2...

Changes

In Twidget, every modification you make in our no-code builder is meticulously documented and stored as a change. Whether you are creating an input or editing a command, each action is captured in the platform. Important: Please note changes will not go live until they are published. Viewing Changes...

Dynamic variables in JSON and text

Build JSON bodies and messages using values from your workflow. The Insert variable picker lets you choose inputs, earlier command results, nested object fields and list items without typing their references. Choose a nested field or list item. 1. Open a command value or function output and choose J...

Live debugging

Pause an isolated editor test before a command runs, move through it one step at a time, and inspect its recorded outputs. Use this to find where a calculation or decision begins to differ from what you expected. Start a debug test. 1. Open a server function, endpoint or event and choose Test. 2. Ch...