Sign Up

Page Forms

Page forms are essential components in web applications that facilitate data collection from users. They streamline user interaction by providing a structured way to input data, which can then be processed for various purposes such as updating content or storing information in a database.

-

Key Concepts

  • Form Element: The foundational structure that encapsulates user inputs and defines the boundaries for data collection.

  • Input Types: Forms can utilize several input types, including:

    • Text Input: For single-line text entries.

    • Dropdowns: For selecting one option from a predefined list.

    • Checkboxes: For multiple selections or binary choices.

  • Submit Button: Initiates form submission, triggering any associated actions or data processing. The button does not need to be contained within the form element itself; however, it must be clearly associated with the form submission process.

  • Form Submission: Only inputs nested within the form are included in the submission payload. Actions can also be triggered independent of input locations.

Main Components and Workflow

  1. Form Construction: Users define a form by adding various input types and a submission button. Each input is assigned a meaningful field name for identification.

  2. Data Handling: Upon form submission, a predefined function is executed, using the values collected from the form to update variables on the page, such as a displayed text element.

  3. User Interaction: Users can fill out the form and submit their data multiple times, with process updates visually reflected on the page through the associated text elements.

Summary

Page forms within the Twidget platform are versatile tools for retrieving and processing user data. By integrating form elements with backend functions, developers can create dynamic web experiences that respond to user input with real-time data updates.

Related Topics

Data Source Mappers

Data Source Mappers are essential components within the Twidget no-code API platform, designed to facilitate the integration of dynamic data sources with UI elements. They serve the purpose of linking data source attributes to the respective fields required by UI components such as dropdowns, radio ...

Upload a File using Pages

This documentation describes the functionality available in Twidget for uploading files through a generated API endpoint and managing interactions via pages. The process allows developers to create dynamic forms that enable users to upload files directly to the backend file storage, specifying vario...

Custom Page Functions

Reusable custom page functions in Twidget enhance the development experience by allowing users to define and manage functions that operate specifically within the context of pages and page components. This capability is an integral feature for creating dynamic, interactive web applications without t...

Page Commands

The new page commands in Twidget are designed to enhance the interactivity and responsiveness of web pages created with the platform. These commands allow developers to retrieve contextual information about the current page session and manipulate its content dynamically. Key Concepts. - Page Variabl...

Page Overview

Twidget provides a robust mechanism for creating web pages accessible via a browser. This feature enables users to build various types of pages using a no-code interface, enhancing the platform's developer experience. Key Concepts. Users can initiate page creation by navigating to the pages section,...