icon HTML

The HTML control allows you to add absolutely any HTML code to your forms. Can be used for variety of reasons, including loading of JavaScript files, creating hidden fields, embedding videos, maps, files, pages, etc.

Find how to embed interactive content to your forms using the HTML-control in our blog post.

This page contains a detailed description of the control properties and JavaScript samples which you can use with this control.

HTML control


Here you can find properties specifically related to the HTML control.


A unique identifier for the control.

Name property


The Name property allows to work with the control via JavaScript code, like this:

    //can access the control using its Name:
    fd.control('HTML1').html = '<h1>Title</h1><p>Paragraph</p>';


The property defines the width of the control in pixels.

If left blank, the control takes up the entire available width in the current grid cell.

Width property


Opens an editor where you can input all the HTML content:

Open Content property

Input the HTML code of the editor and it will appear on the form:

Content editor

JavaScript framework

In this section, you can find basic examples of how to work with the control using JavaScript.

If you are not familiar with the JavaScript framework, get started with the JavaScript basics.


The control is only accessible once the form is rendered, so all calls to the control must be inside fd.rendered event:

    //hide the control
    fd.control('Control1').hidden = true;
    //show the control
    fd.control('Control1').hidden = false;

Get or set content

Get or set the HTML content with the following property:

//return a string with HTML content

//set the content as a string with HTML formatting
fd.control('Control1').html = '<h1>New content for the HTML control</h1>';

Get HTML element

Access HTML element inside the control in order to modify it, hide it, or do something else.

//access control's HTML
var htmlControl = fd.control('Control1').$el;

Hide/show control

Hide a control from a user. The control value can still be accessed and changed with JavaScript.

//hide control
fd.control('Control1').hidden = true;

//show control
fd.control('Control1').hidden = false;