You have to go through a two-step form wizard to enable this
Control, i.e., Design & Advance. Let’s explain
these steps below:
1st Step – Design
This is the first step of
the “HTML” control form wizard. Here
you are required to fill in the following details:
Database Field Name (mandatory): Defines the name of the database field to which the
component's data will be mapped and stored.
Label Name (mandatory): Specifies the display name or title for a field or control in
the user interface.
Column Width: Specifies the width of a column in a layout or grid system, allowing
control over how much space the column occupies relative to others.
HTML: Defines the HTML content or structure to be rendered within the component.
Mapping Fields: Specifies the fields used to map data between the component and the
data source, enabling seamless integration and data binding.
2nd Step – Advance
Bootstrap Column Class: Specifies a predefined Bootstrap CSS class to style and format
the component, enabling quick customization and responsive design.
Custom Class: Specifies a user-defined CSS class to apply custom styles and formatting
to the component.
Style: Defines CSS styling to customize the appearance and layout of the component
directly.
Click “Confirm” and “HTML” control is
configured.
How to use HTML control
Begin by creating a blank transaction form.
Add HTML control.
Configure all the attributes in design page based on the specified requirements of the form.
The "HTML" section is where you design how your content will look. You can use dynamic
tags (placeholders) to show values from your data — such as name, email, skills, or project details.
Key Features:
Dynamic Tags like {name}, {email}, {skill}, and
{project.title} are used to insert data.
Loops allow you to repeat content for a list of items.
[for skill in skills]
{skill}
[/for]
Conditions help display content only when a rule is met.
[if skill === "React"]
{skill} // example: you can add class="bg-success"
[/if]
You can style your output using regular HTML and CSS classes (e.g., Bootstrap)
The "Mapping Fields" section connects your dynamic HTML template with your actual data
by linking specific
fields.
The "HTML Key Name" represents the placeholder used in the HTML template, such as
{name} or {skills}.
The "Data Fields" specifies the actual data source that should fill the corresponding
placeholder.
The "Format Type" allows you to apply automatic formatting, such as converting array
into comma
separated, formatting a date, etc.
The "Default Value" provides a fallback value to display when the data field is empty
or missing.
The "Hide Empty or Null" toggle controls whether the field should be shown or hidden
if no data is
available.
Configure all the attributes in advance page based on the specified requirements of the form.
The "Custom Class" field lets you assign a unique class name to your HTML block
(e.g., htmlctrl). This
class is used to target and style that specific HTML area using CSS.
The "Style" area is where you define custom CSS rules for the class you've entered.
This is useful for
controlling layout, fonts, colors, spacing, and more.