Forms, Validation and Feedback
Generate a compact form, set name and email validation, inspect the generated submission function, test success and fallback feedback, and check desktop/tablet/phone layouts.
Watch tutorial (11:03)
Generate a compact form, set name and email validation, inspect the generated submission function, test success and fallback feedback, and check desktop/tablet/phone layouts.
Watch tutorial (11:03)
Configure a page form to collect input and submit an action.
Recorded with an earlier Twidget interface. Names, control locations and available options may differ; use the linked documentation for current guidance.
Watch tutorial (1:58)
Connect forms and a table to task endpoints, then test create, update, delete, validation and error recovery.
Watch tutorial (20:27)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.
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.
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.
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.
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.
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.
Access Query Parameters in a Page
This section details how to access and utilize query parameters within Twidget pages, enabling dynamic content and functionality based on user-supplied parameters. Key Concepts. - Query Parameters: A method to pass data to web pages through the URL, enabling dynamic content updates based on user int...
Layout Controls
Layout controls are essential components in Twidget, allowing developers to manage the visibility and behavior of various layout elements, such as modals and drawers, within a user interface. These controls enable dynamic user interactions by facilitating the opening, closing, and toggling of layout...
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...
Page Variables
Page variables in Twidget are global variables that are accessible throughout an individual page, allowing for dynamic content generation and manipulation within the application. These variables can be utilized in various contexts, such as element settings or page functions, enabling developers to c...
Page starters
Page starters give you a useful first layout for a records tool, customer view or operational dashboard. Start with clearly labeled demonstration data, customize the page, then connect the endpoints your customers are allowed to use. Choose a starting point. Open Pages, choose Create Page, then Page...