Skip to main content

Webform Editor Overview

Creating a webform#

In 4D Web Studio, everything starts with a webform. A webform is a container that holds all the other components (buttons, grids, style boxes, etc.) of your application.

To create a webform:

  • from the homepage, click Webform and enter a name for the new webform
  • from the Webform Editor, click the New + tab > Webform

Interface#

The Webform Editor provides several tools to customize the interface and contents of your application:

interface

  1. Explorer: Lists your project's webforms, methods, classes, shared elements (such as images), and debuggger sessions. Use the **...** contextual menu at the right side of each element to access actions available for the element (usually **Delete**, **Duplicate**, **Open** or **Edit**). The Explorer also provides access to the project's definition files: roles and privileges, data model, and settings.
  2. Tabs: They let you keep track of your currently opened elements, such as your forms and methods.
  3. Components: The building blocks of your application.
  4. Data Sources: Create and explore your datasources.
  5. Styles Library: Holds predefined and customized styles for your components.
  6. Outline: Presents the structure of your webform and allows you to navigate between the different elements.
  7. Canvas: This is where you combine your components, styles and datasources. You can drag and drop components onto your canvas, then drag and drop CSS classes and datasources onto these components, and preview or render your webforms.
  8. Properties panel: Allows for advanced style customization. Also allows binding datasources to components.
  9. Contextual configuration panel: Link events and methods to your components, edit CSS styles, etc.
  10. Header: Save and preview your work, access the Data Explorer as well as additional settings.

Breadcrumbs#

When you select a component in the canvas, the breadcrumbs display its hierarchy:

breadcrumbs

To select any parent component displayed in the breadcrumbs trail, click its name.

Outline#

The outline section displays the hierarchy of your webform:

outline

Click an element in the list to select it, or click and drag it anywhere in the outline to move it somewhere else.

To display or hide an element, click the eye icon.

Sanity check#

The Webfom editor includes a Sanity check feature, allowing you to easily and quickly check the consistency of your Webforms. This tool is useful to avoid errors at runtime and save time. In particular, the sanity check will detect if a component is bound with a non existing datasource.

The Sanity check is automatically enabled when an opened webform is being edited. Its icon is located at the upper right area above the canvas. When there are no errors, the icon looks like this:

sanity

When errors have been detected, the number of errors is displayed on the icon and you can click on it to display more information about the error(s):

sanity

note

The Sanity check is only informative. A webform can always be saved even if it contains errors.