(this page was created automatically. In case of formatting issues, please visit the official Wiki Page)

Tabs Form

The Dynamic Tabs Form component provides a vertical tab-based interface for organizing and managing related forms. This component allows users to navigate between different forms using vertical tabs, with each tab containing its own form or content. The component also supports form validation, saving data through a configured data source, and handling form submission events. It's particularly useful for complex forms that need to be divided into logical sections for better user experience.

Properties

Visual Properties

Datasource Properties

Event Actions Properties

General Properties

Authorization Properties

Visibility Properties

Testing Hooks Properties

Component Actions

The DynamicTabsFormComponent exposes several actions that can be used in action configurations:

  1. Save active tab as default - Saves the currently active tab as the default tab to display when the component loads. This is useful for preserving user navigation state between sessions.

  2. Save connected forms using datasource connected to tabs form - Validates and submits all form data from all tabs to the configured data source. This action handles form validation across all tabs and manages the submission process.

  3. Form is invalid - Checks if any form within the tabs is invalid. This action can be used to prevent navigation or submission when form data is incomplete or invalid.

  4. Get element data - Retrieves the current data from all forms in the tabs. This is useful for getting a snapshot of form values without submitting them to the server.

Tab States

Each tab in the tabs form can display its validation state visually:

Technical Documentation for Backend Developers

Form Data Submission

The component collects data from all forms across all tabs and sends it to the configured data source endpoint. The data is structured based on the form definition and the createEntityHttpRequestParametersMap configuration.

Example request body:

{
  "personalInfo": {
    "firstName": "John",
    "lastName": "Doe",
    "email": "john.doe@example.com"
  },
  "addressInfo": {
    "street": "123 Main St",
    "city": "Boston",
    "zipCode": "02108"
  },
  "preferences": {
    "notifications": true,
    "newsletter": false
  }
}

The component expects a standard response indicating success or failure, and will handle error messages appropriately.