The Map Field block displays maps (Google, Leaflet, and Mapbox) with set zoom parameters (zooming to a specific country). The field block allows:

  • inputting coordinates by pinning the needed location on the map;
  • storing the data location in three different ways: as a string with location Lat and Lng separated by a comma, as an array, and as a physical address;
  • saving its values conveniently in the Map” meta field of the JetEngine plugin.
NOTE

To use the Map field block, install and activate the JetEngine (v3.0.3 or higher) plugin, enable its Map Listing Module, and set the Maps Settings options.
Read the How to Create Google Maps API Key tutorial to know how to receive the API key and set it in the JetEngine dashboard to display maps on your site.

Adding the Map Field

After creating a new form or opening a previously built one, the Map Field block should be found in the search bar of the block inserter (the “plus” icon) and then inserted where needed.

adding the map field block

Settings of the Map Field

This field block has the following settings tabs: General, Value, Map Settings, and Advanced

map field block settings

General Settings

The General settings tab includes the FIELD LABEL, FORM FIELD NAME, and FIELD DESCRIPTION fields:

map field block general settings
  • FIELD LABEL ㅡ a field intended for the field’s label;
  • FORM FIELD NAME ㅡ a field intended for the field’s name. This field will be filled out automatically after adding the text in the FIELD LABEL field;
  • FIELD DESCRIPTION ㅡ a field for the description of the map.
NOTE

The FIELD LABEL and FIELD DESCRIPTION fields allow the usage of shortcodes.

Value Settings

The Value settings allow for the specification of the location center using coordinates and the zoom setting of the map. The Value tab includes the following settings:

map field value settings
  • VALUE FORMAT ㅡ a field that allows choosing how to store the location by clicking the corresponding button (“String,” “Array,” or “Address”):
    • String ㅡ an option that, if selected, stores the coordinates as a string with location latitude and longitude separated by a comma. For example: “46.969686110698525,31.991035188696703”;
    • Array ㅡ an option that, if selected, stores the coordinates as an array of latitude and longitude. For example: “{“lat”:46.969686110698525,”lng”:31.991035188696703}”;
    • Address ㅡ an option that, if selected, stores the location as a physical address, like this: “6 Walnut Road, Manchester SW1A 1AA, UK”.
  • DEFAULT VALUE ㅡ a field that allows entering or selecting dynamically the latitude and longitude coordinates.
NOTE

While the location can be stored in three different formats, manual input in the DEFAULT VALUE field is available only in the “String” format, i.e., “50.45,30.53”. This format works regardless of the options set in the VALUE FORMAT field.

The DEFAULT VALUE field allows usage of the dynamical data by pressing the “Dynamic Tag“ icon. 

It opens the Edit Preset pop-up for selecting a data source from the following options: “Post,” “User,” “URL Query Variable,” and “Option Page.” In turn, each selected option turns on the appropriate field, allowing one to choose the needed data. Also, this pop-up includes the Restrict access toggle that allows restricting users who are allowed to edit this value.

dynamic data as a source for map data

The needed settings should be saved by pressing the “Update” button.

After selecting the dynamic data in the Edit Preset pop-up, the ZOOM slider will be added to the Value settings. This field has three buttons to set the “Default,“ “Small,“ and “Custom“ zoom. Clicking the “Custom” button enables a field to type a zoom value ranging from “1” to “18.”

zoom field of the value settings

Map Settings

The Map Settings tab has the following settings:

map settings of the map field
  • Show search autocomplete ㅡ a toggle that, if enabled, adds a drop-down field that allows selecting an address from a drop-down list of the proposed five addresses and displaying a picked location on a map. Read the How to Enable Search Autocomplete for Map Field Block tutorial for more details;
  • HEIGHT ㅡ a slider that allows setting the map dimensions. The map height can be adjusted between “50“ and “1000“ pixels. Pressing the “Reset” button sets a 300-pixel height.

Advanced settings

The Advanced settings include:

advanced settings of the map field
  • Add Prev Page Button ㅡ a toggle that, if activated, adds the “Prev Page” button to the form;
  • Prev Page Button Label ㅡ a field that allows changing the text to be shown on the “Prev Page” button;
  • Field Visibility ㅡ a drop-down list that allows displaying the form for “For all,” Only for logged in users,“ and ”Only for NOT-logged in users”;
  • CSS Class Name ㅡ a field for adding the CSS class.

Post Submit Actions

The Map Field block allows storage of the map data inserted on the front end in the WordPress database. In particular, the “Insert/Update PostPost Submit Action should be added. In this case, the formats of the form Map Field block and the JetEngine’s “Map“ meta field should be of the same type.

aadding the map field data to cpt

Pressing the “Update“ button saves the changes.

Front End View

On the front end, the Map Field will display two fields: the text field with the “Search” text and the map.

the field map on the front end

After typing three characters in the text field, the drop-down list will appear.

typing a text in the address autocomplete drop-down

Once the needed address from the list is picked, the map will show this location.

the map of the map field displays the location

After pressing the “SUBMIT” button, the set address will be added to the specified Custom Post Type.


That’s all about the Map Field block of the JetFormBuilder plugin, which allows one to work with the “Map“ meta field of JetEngine and gives users the ability to select the location on the map.

The Repeater Field can be an advantageous option for your form when content needs to be repeated. One can’t deny that the ability to add as many fields as you need dynamically is really handy when it comes to similar data. Let’s look at how to add new fields to book additional places on tour just with one button click. 

Let’s begin by proceeding to JetFormBuilder > Add New to create a form from scratch. For example, we will build a booking form with the repeater field that lets users register as many travelers as needed.

Initially, we delete the default Hidden Field, Text Field, and Action Button to avoid getting confused.

default form in gutenberg

Next, we give a title to the form and add general fields to create a canvas. Among them are Hidden, Heading, Date, Text, and Radio fields.

booking form in jetformbuilder

Then add the essential part of the form, the Repeater Field. Adjust the settings according to your demands.

Hit the plus-shaped button to add the first block to the Repeater.

repeater field general settings

We begin with the Heading Field to name the proceeding section.

heading field in the repeater

Then we add a couple of Text Fields specifying the information about the traveler.

text fields in the repeater

And the final fields we create in the Repeater are the Radio Field and one more Text Field.

Besides, don’t forget to change the button’s label located under the fields placed in the Repeater.

radio and text fields in the repeater

Once done, we’ll add an Action Button and two more Hidden Fields to complete the form. One represents the current post title.

current post title hidden field

And the other one’s Field Type is selected as “Current Post Meta.” Here the Meta Field to Get Value From is also specified. 

current post meta hidden field

Though don’t forget to adjust the JetForm settings. Especially, pay attention to the Post Submit Actions. Set the needed amount of actions taken once the form is submitted.

For instance, we add three post-submit actions, Insert/Update Post, Send Email, and Redirect to Page.

Finishing with all the settings, mind pressing the “Publish” button to make the form live.

jetformbuilder post submit actions

Head to the page on which you want to place the form. For instance, we will add the form to a single page. To do so, we open WordPress Dashboard > Crocoblock > Theme Templates and hit the “Edit” button that appears next to the needed template once we hover on it.

Mind that you can use both Gutenberg and Elementor for editing.

Moreover, you can add a new template by pressing the samely-named button.

NOTE

You can also add the form to the pop-up if the JetPopUp plugin is installed and activated.

crocoblock single templates

Find the JetForm block/widget, place it on the page, and work on the settings.

Press the “Update” button once the changes have been applied.

jetform settings in elementor

Or, look at the template made with Block Editor. The settings here are pretty much the same.

jetformbuilder form in gutenberg

Check the form on the front end. You can also observe the fields we have added to the Repeater.

booking form on the frontend

And after them, there is a button that duplicates the fields once the button has been pressed.

new repeater fields

That’s it; the fields can be repeated as many times as needed. Now you know in which cases and, most importantly, how to add the Repeater Field to the JetFormBuilder form.

Field validation is an automated process of determining that all fields contain correct values before the WordPress form is accepted.

First of all, you need to create a form. Here’s an example of a simple form with a Number field, a Select field, and a Checkbox and Calculated fields combo.

calorie calculator form

There is no “Submit” button, and if there are any conditions set to the fields, e.g., Min and Max value, it’s impossible to determine whether the user enters a correct value.

field settings min and max value

The second step is to either copy the post ID from the form’s URL or head back to the JetFormBuilder > Forms folder. Find the necessary form and get its ID from the Shortcode column.

id of the form

Now, to implement the fields validation without clicking the “Submit” button, you need to go to WordPress Dashboard > Appearance > Theme File Editor.

Then click on the functions.php file in the right sidebar.

functions file

Scroll down the file and add the filter where your-form-id will be the ID you previously copied:

add_action( 'wp_footer', function () { ?>
<script>
  jQuery( '.jet-form-builder[data-form-id="your-form-id"] input, .jet-form-builder[data-form-id="your-form-id"] select' ).on( 'blur', function() {
      this.reportValidity();
    } );
</script>
<?php } );
code for field validation

Don’t forget to click the “Update File” button. On the front end, a user will see a certain tooltip if the entered value is incorrect without clicking the “Submit” button.

incorrect value

Now you know the easiest way of implementing field validation without submitting the form.

Render in HTML allows you to make a Hidden field invisible in the HTML markup. With this feature, any Hidden field in the form becomes more secure, which is paramount when using Payment Gateways (PayPal/Stripe). 

Secure field is a field that cannot be modified, read or seen on the front-end even with the help of JavaScript.

Render in HTML is turned on by default. This way, the Hidden field type will be seen in the page’s source code.

render in HTML feature enabled

If you disable the Render in HTML toggle, the Hidden field will disappear in the HTML markup and be secured. 

render in HTML feature disabled

The Render in HTML feature works with all Field value types of the Hidden Field although there are two exceptions. The Hidden Field won’t be secure if it is set to URL Query Variable or when using a preset with URL Query Variable set as a source.

url query variable

If Referer URL is chosen, the Render in HTML toggle won’t be available meaning that this feature is turned on by default.

referer url of the hidden field
NOTE! The Render in HTML feature cannot be used when combining Hidden and Calculated field types or applying custom JavaScript code for a Hidden field.

Make work with JetFormBuilder easier by using the Blocks Transformation feature. Make changes to the WordPress form you create with the JetFormBuilder without effort. 

The feature is already built in the JetFormBuilder’s main functionality, so you don’t need to activate any additional elements.

Just proceed to the JetFormBuilder > Forms and click on the “Edit” button of the form you want to change. 

Or build a new form by pushing the “Add New” button to test the WordPress Blocks Transformation there.

jetformbuilder forms

As Gutenberg has been opened, let’s check the Text Field. It is the most telling example, as this field type supports transformation to any other JetFormBuilder fields.

Click on the block and its icon on the appeared panel. Now the transformation list is available.

wordpress text field transformations

For instance, we transform this field into the Checkbox Field. As you can see, the Field Label and Form field name are preserved as in the Text Field.

wordpress text field transformed into checkbox

So, the main feature is the transformation of the already adjusted coinciding settings into the new block.

Other JetFormBuilder blocks also transform into different form blocks effortlessly.

wordpress radio field transformations

All the JetFormBuilder blocks can transform into Conditional Block. When transformed, the selected block or group of blocks are placed inside the conditional block.

wordpress radio field transformed into conditional block

Besides, you can place several blocks into the Conditional Block. To do so, initially click on the upper block.

Push the “Shift” button on your keyboard if you are a Windows user or the “Command” button if you are a macOS user, and, without releasing it, click on the lower block.

Then press the block icon above the blocks and transform them into the Conditional Block.

several blocks transformation into the conditional block

Moreover, not only the JetFormBuilder blocks can be transformed, but also some core Gutenberg blocks.

So, the Buttons can be transformed into the Form Break Field, Action Button, and Conditional Block.

wordpress buttons transformations

Separator is compatible with Group Break Field and Conditional Block.

wordpress separator transformations

And last but not least Paragraph transforms into Heading Field, Text Field, and Conditional Block.

wordpress paragraph transformations

Now you know how to transform form field blocks in Gutenberg with the help of the JetFormBuilder plugin.

Referer URL is a JetFormBuilder feature that allows you to get a hidden field with the user’s address to the current page with the WordPress form, created via the Gutenberg block editor. This feature can help you to collect SEO statistics.

Proceed to JetFormBuilder > Forms and click on to “Edit” or “Add New” form, according to your needs.

Open the Field Value drop-down menu in the Hidden Field block and select the Referer URL option.

referer url option in the hidden field block in the form

Add the form to any post or page, if you haven’t done it yet, hit the “Publish” or “Update” button and proceed to the front end. You can do this by pushing the “View Post” or “View Page” buttons.

Submit the form and open the DevTools page. Here you can see the user’s referer URL.

referer url on the front end

That’s it. You know now how to get the user referer URL from the JetForm Hidden Field block.

color picker field

Give your users an opportunity to design your website and pick a certain color in the form with the help of the Color Picker Field.

You will be able to use the default HTML Color Picker and choose a color in HEX, RGB and HSL formats. However, the values can be saved only in seven-character hexadecimal format. 

If you want to get advanced Field Settings and save values in HEX or RGB format, please check our Advanced Color Picker addon that has such an option.

Settings

general and advanced color picker block settings
color picker field default value option

You can choose a Default Value for Color Picker field by clicking on the cylinder-shaped icon. The Edit Preset window will pop up, where you should choose the Source the information will be taken from. Check this tutorial to get more information about using the Preset.

Style Settings

color picker field and jetstylemanager styling options

You may install the JetStyleManager plugin to get the Block Style button in the top right corner of the editing window. Here are the styling settings you can meet there:

The Action Button field block inserts the form submission button with the default “Submit” text, which is the final and only field of every form. This block includes three additional block options to insert the “Next Page,” “Prev Page,” and “Change Render State” buttons. Users can switch these variations of the Action Button directly from the Inserter.

action button settings

Settings

The “Action Button” button has the following settings:

  • the General setting tab includes the FIELD LABEL field to type the text on the button instead of the default “Submit” text. This field allows the use of shortcodes;
  • the Advanced settings tab, which includes:
    • the “Add Prev Page Button” toggle, which turns on the PREV PAGE BUTTON LABEL field to type its label. The field allows to use the shortcodes;
    • the CSS CLASS NAME field to type the CSS class to modify the button’s design.

Style Settings

Users can style the Action Button field block using the free JetStyleManager plugin. After installing and activating it, the brush-shaped icon appears in the top corner of the screen.

action button style settings

This plugin enables two styling tabs: Submit Wrap and Action Button. Inside these tabs, one can customize the block’s Alignment, Border, Color, Margin, Padding, Typography, and other options.

That’s all about the Action Button block settings.

The Form Page Break block of the JetFormBuilder plugin divides forms into some parts (pages) for their visual separation. The next page of the split form will appear after filling in the previous ones. On the front end, it looks like a “Next page” button that opens the next part of the form when the current one is finished.

The Form Page Break block can display the global content and work inside the Conditional Block field. Usage of the Conditional Block field allows displaying the Progress Bar block through a separate block.

The Form Page Break block allows displaying the Next /Prev buttons anywhere within the current page. 
Additionally, you can add the Form Pages Start block to specify the starting point for form parts. If the Form Page Break block is added after the Form Pages Start block, a new form page will start from the Form Pages Start block.

form page break block in the conditional block

Settings

The Form Page Break block has three groups of settings: Button Settings, Page Settings, and Advanced:

form page break block settings
  • the Button Settings include the Enable Next Button and Add Prev Page Button toggles; if enabled, turn on the Next Button Label Field and Prev Page Button Label Fields to type the appropriate button name instead of the default text; additionally, if disabled, the Enable Next Button toggle, can be used as a form break;
  • the Page Settings has the following settings:
    • the Label of Progress field to type a last progress name added to the Form Page Break field at the very end of the form;
    • the Validation Message field to type the text to show if the next page button is disabled.
  • the Advanced settings allow adding some CSS coding in the CSS Class Name bar.

Style Settings

The style settings to be applied to this field will be visible on the front end of the form. Partially, the style settings include the button options (margins, typography, colors, etc.) and coincide with the button options referring to the template used.

Here are the styling settings you can meet there:

The Form Break Page style settings are also available in the Elementor editor.

NOTE

Be aware that the Form Break Buttons tab are only for the Next Page and Prev Page blocks, not for the “Next” and “Prev” buttons. For example, to align the buttons, you need to use the Alignment from the Form Break Buttons tab.

form page break styles in elementor
group break form field appearance

Actually, this field creates a single line that can divide one part of the form from another. You can customize the thickness of the line and its color. The users will see it but won’t be able to interact with it.

Settings

group break form field advanced settings

Style Settings

group break form field styling options

If you have installed the JetStyleManager plugin, the Block Style button will appear in the top right corner of the editing window. Here are the styling settings you can meet there:

The Repeater Field block is intended to contain all types of blocks (so-called “nested fields”) that will be repeated as many times as needed.

a repeater field with nested fields
NOTE

The JetFormBuilder plugin does not restrict inserting the Repeater Field into the Repeater Field, but we strongly do not recommend doing it.

The Repeater Field block is often used in booking forms (for example, if the number of visitors is set manually), T-shirt order forms (to specify needed settings for each T-shirt), Calculators, etc.

For an in-depth understanding of how to configure the Repeater Field’s settings, use it in calculations, specify the number of repetitions in different ways, and more, the How to Add and Use Dynamic Repeater in the JetFormBuilder Forms tutorial should be read.

Also, more details can be found in the How to Create a Form with a Dynamic Repeater in WordPress video. 

Inserting the Repeater Field Block

This block can be added to any form by finding it in the search bar of the block inserter (the “plus” icon) and placing it where required.

adding the repeater field block

Also, the Repeater Field can be inserted as part of JetFormBuilder’s embedded templates, presented in the Welcome Block, and patterns (for example, the booking form).

Inserting Nested Field into Repeater Fields

To insert the needed block(s) into the Repeater Field, the “plus” icon (inserter) should be pressed.

adding a block into the repeater field

Settings of the Repeater Field

The settings of this field are presented by the General, Field, and Advanced settings.

settings of the repeater block

General

The General settings include the following fields:

general settings of the repeater block
  • FIELD LABEL ㅡ a field for inserting the field’s label;
  • FORM FIELD NAME ㅡ a field for the field’s name. This field will be filled out automatically after the text is added to the FIELD LABEL field, but it can be corrected according to requirements. However,  only Latin letters (lower case), numbers, `-` or `_` chars are allowable;
  • FIELD DESCRIPTION ㅡ a non-required field for more information on this field, e.g., the field’s description;
  • DEFAULT VALUE ㅡ a field that displays the default value that will be shown in the Repeater Field. After pressing the “Dynamic Tag” icon, the Edit Preset pop-up will be opened. This pop-up includes the SOURCE drop-down list (with the “Post,” “User,” “URL Query Variable,” “Option Page,” and “Related Items” options) that allows selecting the corresponding source for the default value. In turn, each option activates the appropriate field, allowing one to choose the needed data.
the edit preset pop-up

Field

The Field settings allow for selecting the way to set the number of repetitions and the way to make calculations. The tab is presented by the following fields:

field settings of the repeater field
  • MANAGE REPEATER ITEM COUNT ㅡ a drop-down list for choosing how the blocks of the repeater will be added to the form. The list has the following options:
    • Manually ㅡ an option that, if selected, adds a button to the form and, by clicking that button, users can add as many blocks as needed. The label of the button is defined in the ADD NEW ITEM LABEL bar;Dynamically ㅡ an option that allows taking the number of repetitions from the form’s field. Once selected, it activates the FIELD ITEMS COUNT field that is intended to insert such a field;
  • CALCULATE REPEATER ROW VALUE ㅡ a drop-down list for choosing how to count the data from the Repeated Field in the Calculated Field. The list has the following options:
    • Default (returns rows count) ㅡ an option that allows a calculation for each row separately;
    • Custom (calculate custom value for each row) ㅡ an option that adds a text area for the formula, similar to the one used in the Calculated Field. That formula will be calculated for every repeater block separately, and that value may be used in other fields.

Advanced

The Advanced section includes the following fields:

advanced settings of the repeater field block
  • Add Prev Page Button ㅡ a toggle that enables the PREV PAGE BUTTON LABEL, a field for inserting text that will be displayed on the corresponding button (if added);
  • FIELD VISIBILITY 一 a drop-down list that allows selecting who can observe the block. It includes the following options: “For all,” “Only for logged in users,” or “Only for NOT-logged in users”;
  • CSS CLASS NAME 一 a text field that allows inserting an additional CSS class to design the block field.

The JetFormBuilder Plugin: Looking Through Advanced Settings tutorial explains how to configure the Advanced settings. 

Usage of the Repeater Field in the Post Submit Actions

The “Insert/Update PostPost Submit Action allows data to be added to Custom Post Types (CPT) posts via the Repeater Fields

In this case, the Repeater meta field and Repeater Field block in the form should be created. 

In turn, the two conditions for correctly adding form data to the CPT should be met:

  • Both Repeaters should have fully identical Names (not to be confused with Labels); for example, the form’s Repeater Field block has the “cars” Name:
setting the repeater block name

Also, the Repeater meta field (from the associated CPT) has the “cars” name/ID.

setting the repeater meta field name
  • Meta fields and the form’s fields from the Repeaters should have fully identical Names and Types. For example, the form’s Repeater Field block includes the “model” Text Field, “price” Number Field, and “engine” Radio Field.
setting the repeater nested field names

In turn, the Repeater meta field includes the following meta fields: “model” Text field, “price” Number field, and “engine” Radio field.

setting the meta field names

Finally, when configuring the “Insert/Update Post” Post Submit Action, the names of the corresponding meta fields should be entered into the fields of the FIELD MAP.

configuring the insert and update user post settings

That’s all about the Repeater Field available with the JetFormBuilder plugin for WordPress forms.

The Heading Field block has functionality similar to the standard WordPress Heading block – it adds a heading block. However, in contrast to the WordPress Heading block, the JetFormBuilder’s Heading Field block allows one to set the visibility rules and specify users who can see this field.

Adding the Heading Field

The Heading Field block can be inserted into a form, just like any other WordPress block. It can be found in the search bar of the block inserter (the “plus” icon) and then placed where needed.

adding the heading field

Settings of the Heading Field

The Heading Field has only two settings tabs: General and Advanced settings.

settings of the heading field

General

The General tab contains the following two settings:

general settings of the heading field block
  • FIELD LABEL ㅡ a field for inserting the field’s label;
  • FORM FIELD NAME ㅡ a field for the field’s name. This field will be filled out automatically after the text is added to the FIELD LABEL field.

Advanced

The Advanced section includes the following fields:

advanced settings of the heading field block
  • Add Prev Page Button ㅡ a toggle that enables the PREV PAGE BUTTON LABEL, a field for inserting text that will be displayed on the corresponding button (if added);
  • FIELD VISIBILITY 一a drop-down list that allows selecting who can observe the block. It includes the following options: “For all,” “Only for logged in users,” or “Only for NOT-logged in users”;
  • CSS CLASS NAME 一 a text field that allows inserting an additional CSS class to design the block field.

The JetFormBuilder Plugin: Looking Through Advanced Settings tutorial explains how to configure the Advanced settings. 

Styling the Block

After installation and activation of the free JetStyleManager plugin, the “Block Style” button will appear in the top right corner. This plugin configures the Alignment, Border, ColorMargin, Padding, and Typography settings of the Heading Field.

That’s it. Now you know how to add the Heading Field block from the JetFormBuilder plugin to a WordPress site to write a form title that allows one to set the visibility rules and specify users who can see this field.

range form field appearance

This field creates a range with a slider in the form and gives the user an opportunity to move that slider. This way, the user chooses one value in a range. The Range Field works nicely when you want the users to evaluate something. It looks eye-catching, so it will also be a kind of decoration if there are lots of multi-choice fields already.

Settings

range form field settings

Field Settings

  • Min/Max Value. By default, the range has values from 1 to 100. If you need some other minimum and maximum values, you can set them in those bars;
  • Step. When the user moves a slider, it goes through the small steps. By default, the step is set to 1. However, you can change the value if you need it;
  • Value prefix/suffix. This is the text that goes before and after the value that is shown at the end of the range, on the right side. To create a space, use the “&nbsp;” code; in the front, it will be visible as space, not as the set of symbols.
range form field value prefix and suffix

Style Settings

range form field styling

If you have installed the JetStyleManager plugin, the Block Style button will appear in the top right corner of the editing window. Here are the styling settings you can meet there:

The Wysiwyg Field block (an acronym for “What You See Is What You Get”) allows users to create and style content, including texts, links, and images. 

On the front end, this field looks like a common WordPress editing window with a toolbar at the top. Using this window, users can add styled text, HTML coding, or other types of content to the form.

 

the

Adding the Wysiwyg Field

After creating a new form or opening a previously built one, the Wysiwyg Field block can be found in the search bar of the block inserter (the “plus” icon) and then dragged-n-dropped where required.

adding the wysiwyg field block

Settings of the Wysiwyg Field

The Wysiwyg Field block settings include two tabs: Settings and Styles. The Settings tab consists of the General, Field, Validation, and Advanced settings. In turn, the Styles tab is intended to specify the Text colour and Background for different field elements.

settings of the wysiwyg field

General

The General settings comprise the FIELD LABEL, FORM FIELD NAME, FORM DESCRIPTION, and DEFAULT VALUE fields:

general settings of the wysiwyg field
  • FIELD LABEL ㅡ a field that allows inserting the field’s label;
  • FORM FIELD NAME ㅡ a field designed for the field’s name. This field will be filled out automatically after the text is added to the FIELD LABEL field;
  • FIELD DESCRIPTION ㅡ a non-required field intended to insert the field’s description;
  • DEFAULT VALUE ㅡ a text field that allows inserting data that will be automatically shown in the field. However, it can be changed by the user who completes the form. Pressing the “Dynamic Tag” icon opens the Edit Preset pop-up with the SOURCE drop-down list, which has the following options: “Post,” “User,” “URL Query Variable,” “Option Page,” and more. In turn, each selected option activates the appropriate field, allowing one to choose the needed data. Also, this pop-up includes the Restrict access toggle that allows restricting users who are allowed to edit this value. The required settings should be saved by pressing the “Update” button.
edit preset pop-up

Editor

These settings configure the size of the Wysiwyg window. They are presented by the ROWS slider, which allows setting the number of rows needed in the Wysiwyg window. The ROWS field ranges from 4 to 25 rows. Pressing the “Reset” button returns the default value of eight rows.

Also, the Save text styles when pasting slider allows text formatting to be preserved when copying from other text editors.

editor settings of the wysiwyg field

Validation

This section is presented by the VALIDATION TYPE field with three buttons:

Inherit ㅡ an option that sets the validation inherited from the form arguments;

Default ㅡ an option that sets the browser’s native validation;

Advanced ㅡ an option that sets the advanced rules for validation. If pressed, the FIELD EMPTY text field will appear, which is intended to insert the corresponding text.

validation settings of the wysiwyg field

More details can be found in the Advanced Form Validation tutorial. Also, the Advanced Field Validation with JetFormBuilder: Use Cases contains additional information for a better understanding of this feature.

Advanced

This section contains the following fields:

advanced settings of the wysiwyg field
  • Add Prev Page Button ㅡ a toggle that enables the PREV PAGE BUTTON LABEL field to add a text that will be displayed on the corresponding button (if the button is added);
  • FIELD VISIBILITY 一 a drop-down list that allows specifying what users can observe the block: “For all,” “Only for logged in users,” or “Only for NOT-logged in users”;
  • CSS CLASS NAME 一 a text field that allows inserting an additional CSS class to design the block field.

The JetFormBuilder Plugin: Looking Through Advanced Settings tutorial explains how to configure the Advanced settings. 

Styles settings

These settings allow for the specification of the Text color and Background color for the Editor container, Toolbar, Toolbar buttons, Hover toolbar buttons, Checked toolbar buttons, and Status bar.

the style tab of the wysiwyg field

Setting Fonts and Font Size

The font and font sizes configuration is not available via the standard settings, but they can be configured using the following code:

In particular, one should navigate to the WordPress Dashboard > Plugins > Plugin File Editor tab and insert this code into the function.php file of the child theme or into the code snippets plugins. 

Here, the “JetFormBuilder plugin“ option should be selected in the Select plugin to edit drop-down list, and wysiwyg > module.php – in the Plugin Files drop-down list.

selecting files to edit 1x.png

Then, the initial code of the file should be scrolled, and the code presented above should be pasted.

the code added

After pressing the “Update File” button below the editor window, one should update the form with the added WYSIWYG block field. 

In turn, on the front end, a font configuration panel with menus for fonts, sizes, colors, and backgrounds will be added.

the wysiwyg field with additional settings on the front end

That’s it. Now you know how to use the JetFormBuilder plugin to add the Wysiwyg Field to your form to upload files on WordPress websites.

The Media Field block from JetFormBuilder is intended to upload media files of a pre-specified type to a website as well as use specific macros and filters

After inserting the Media Field, a button will be added to the form that allows users to upload a media file from their PC to the website. The media files uploaded this way will be stored in the JetFormBuilder folder (“wordpress\htdocs\wp-content\uploads\jet-form-builder”) on the PC where WordPress is installed. Also, the protection for directories where files are saved is provided by the Media Field functionality.

On the front end, the Media Field shows not only the thumbnails of the uploaded images but also the uploaded file names or the number of files.

media field with uploaded files

Adding the Media Field

After creating a new form or opening a previously built one, the Media Field block can be found in the search bar of the block inserter (represented by the “plus” icon) and then placed where needed.

adding the media field block

Also, the Media Field can be inserted as part of JetFormBuilder’s embedded templates, presented in the Welcome block, and patterns.

Settings of the Media Field

The Media Field block settings are presented by the General, Field, Validation, and Advanced tabs.

settings of the media field

General

The General settings tab includes the following fields:

general settings of the media field
  • FIELD LABEL ㅡ a field for inserting the field’s label;
  • FORM FIELD NAME ㅡ a field for the field’s name. This field will be filled out automatically after the text is added to the FIELD LABEL field;
  • FIELD DESCRIPTION ㅡ a non-required field intended to insert the field’s description.

Field

The following fields are presented in Field tab:

field settings of the media field
  • USER ACCESS ㅡ a drop-down list that allows choosing the type of users that will be able to upload media files. Those could be all registered users (“Any registered user”), all users permitted to upload files (“Any user who is allowed to upload files”), the users permitted to edit posts (“Any user who is allowed to edit posts”) and all users in general, including guests (“Any user (incl. Guest)”). Mind that allowing all users to upload files could make the website a target of spam and inappropriate content;
  • Insert attachment ㅡa toggle that, if disabled, allows storing the uploaded media files in the folder on the PC without accessing them via the Media Library. If enabled, this toggle turns on the FIELD VALUE drop-down list, which has three options: to store the ID of the file (“Attachment ID”), the URL of the file (“Attachment URL”), and both of them (“Array with attachment ID and URL”);
  • MAXIMUM ALLOWED FILES TO UPLOAD ㅡ a text field intended to specify how many files the users will be able to upload. The needed value can be typed or selected from the SOURCE drop-down list. In particular, pressing the “Dynamic Tag” icon opens the Edit Preset pop-up, which includes a SOURCE drop-down list with the following options: “Post,” “User,” “URL Query Variable,” and “Option Page.” 
edit preset pop-up
  • MAXIMUM SIZE IN MB ㅡ a text field intended to specify the maximum file size the user can upload instead of the default 40 MB. The needed value can be typed or selected from the SOURCE field. In particular, pressing the “Dynamic Tag” icon opens the Edit Preset pop-up, which includes a SOURCE drop-down list with the following options: “Post,” “User,” “URL Query Variable,” and “Option Page.” 
  • MAXIMUM FILE SIZE MESSAGE ㅡ a text field intended to insert the text to display the maximum allowed file size;
  • ALLOW MIME TYPES ㅡ a text field designed to add the types of files that users are allowed to upload. If left empty, all file types will be allowed. The entered data should be separated by commas, spaces, or the “Enter” key.

Validation

The setting is presented by the VALIDATION TYPE field with three buttons:

validation settings of the media field
  • Inherit ㅡ an option that sets the validation to be inherited from the form arguments;
  • Default ㅡ an option that sets the native validation that works by a browser;
  • Advanced ㅡ an option that sets the advanced rules for validation. If pressed, the FILES LIMIT EXCEEDED and FILE SIZE LIMIT EXCEEDED text fields will be shown, which are intended to type the corresponding text or use a macro.

Read the Advanced Form Validation and Advanced Field Validation with JetFormBuilder: Use Cases tutorials for a better understanding.

Advanced

The Advanced section includes the following fields:

advanced settings of the media field
  • Add Prev Page Button ㅡ a toggle that enables the PREV PAGE BUTTON LABEL field for inserting a text that will be displayed on the corresponding button (if added);
  • FIELD VISIBILITY 一 a drop-down list that allows selecting who can observe the block: “For all,” “Only for logged in users,” or “Only for NOT-logged in users”;
  • CSS CLASS NAME 一 a text field that allows inserting an additional CSS class to design the block field.

More details on managing the corresponding settings can be found in the  JetFormBuilder Plugin: Looking Through Advanced Settings tutorial. 

Styling the Block

After installation and activation of the free JetStyleManager plugin, the “Block Style” button will appear in the top right corner. This plugin configures the Alignment, Border, ColorMargin, Padding, and Typography settings of the Media Field.

That’s all about the Media Field available with the JetFormBuilder plugin for WordPress.

The Datetime Field block by the JetFormBuilder plugin merges the Date and Time Fields into one. The field is intended to insert/select the date and time manually in the “yyyy-mm-dd” and “hh:mm pm/am” formats, respectively. Also, the data can be set dynamically or using macros.

On the front end, the Datetime Field is presented as a text field that allows typing the needed date and time. In addition, pressing a “calendar” icon allows selecting the required ones. By default, the unrolled calendar displays the current local date and time.

Also, clicking the “Clear” and “Today” links allows resetting the data or setting the current date and time, respectively.

the datetime field block on the front end

Inserting the Datetime Field

To insert this block, first, it should be found in the search bar of the block inserter (the “plus” icon) and then dragged and dropped where required into a form.

adding the datetime field block

In addition, the Datetime Field can be found in the JetFormBuilder’s embedded templates, available via the Welcome block or patterns.

Datetime Field Settings

The settings of the Datetime Field include the General, Value, Field, Validation, and Advanced tabs.

settings of the datetime field block

General

The General tab is presented by the following fields:

general settings of the datetime field block
  • FIELD LABEL ㅡ a field that allows inserting the field’s label;
  • FORM FIELD NAME ㅡ a field designed for the field’s name. This field will be filled out automatically after the text is added to the FIELD LABEL field. Also, one can change this text if needed, but only Latin letters (lower case), numbers, `-` or `_` characters are allowed;
  • FIELD DESCRIPTION ㅡ a non-required field intended to insert more information on this field, e.g., the field’s description.

Value

These settings include the DEFAULT VALUE, STARTING FROM DATE, and LIMIT DATES TO fields. They allow setting the pre-defined values, selecting them dynamically (by pressing the “Dynamic Tag” icon), and selecting the needed macro (by clicking the “wrench” icon). Plain dates for all these fields are set in the “yyyy-MM-ddThh:mm” format. 

the value tab of the datetime settings
  • DEFAULT VALUE ㅡ a field that allows adding the default value that will be shown in the Datetime Field. The following dynamic SOURCES can be set for this field (as well as for the other fields in the Value settings) after pressing the “Dynamic Tag” icon in the newly appeared Edit Preset pop-up: “Post,” “User,” “URL Query Variable,” “Option Page,” and “Related Items.”  Each selected option activates the corresponding field, allowing one to choose the needed data. Also, this pop-up includes the Restrict access toggle that allows restricting users who are allowed to edit this value. The required settings should be saved by pressing the “Update” button.
edit preset pop-up

Also, one can set the needed DEFAULT VALUE by clicking the “wrench” icon and selecting the required form’s Fields, macro from the list of available Extra macros, and filters:

selecting the form fields, macros, and filters
  • %CT::CurrentDate% — a macro that returns the date as a timestamp (to use this macro, the quotation marks are required as follows: ‘%CT::CurrentDate%’);
  • %CT::Min_In_Sec% — a macro that returns the number of milliseconds in one minute  (can be used, for example, to get the difference between dates in minutes);
  • %CT::Day_In_Sec% — a macro that returns the number of milliseconds in one day (can be used, for example, to get the difference between dates in days);
  • %CT::Month_In_Sec% — a macro that returns the number of milliseconds in a month (can be used, for example, to get the difference between dates in months);
  • %CT::Year_In_Sec% — a macro that returns the number of milliseconds in a year (can be used, for example, to get the difference between dates in years).

The macros can be used individually or with filters to provide calculations, return timestamps, etc. The following filters are available for the Datetime Field:

  • ifEmpty — a filter that returns the value passed in the argument if the macro returns an empty value;
  • length — a filter that returns the length of the string or array;
  • T — a filter that returns the time stamp and is usually used in conjunction with Date & Datetime and Time Field;
  • toDatetime — a filter that gets the timestamp from the macro and formats it according to the Datetime field format;
  • addMin, addHour, addDay, addMonth, addYear — filters that add minutes, hours, days, months, and years correspondingly via an argument to a macro that returns a date or timestamp;
  • subMin, subHour, subDay, subMonth, subYear — filters that subtract minutes, hours, days, months, and years correspondingly via an argument to a macro that returns a date or timestamp;
  • setMin, setHour, setDay, setMonth, setYear — filters that set minutes, hours, days, months, and years correspondingly via an argument to a macro that returns a date or timestamp.

The DEFAULT VALUE field, in contrast to the STARTING FROM DATE and LIMIT DATES TO fields, allows adding a condition-dependent value by pressing the “+Add Dynamic Value” button. The Edit Dynamic Value pop-up will be open with the following fields:

edit dynamic value pop-up
  • VALUE TO SET ㅡ a field that supports multiple values and allows entering or selecting them dynamically, as well as applying macros;
  • APPLY TYPE ㅡ a drop-down list that specifies how to apply the needed condition: “On change conditions result,” “Once,” or “Always”;
  • FIELD ㅡ a drop-down list that allows selecting the needed form’s field to compare;
  • OPERATOR ㅡ a drop-down list that allows selecting the needed operator to compare (e.g., “Equal,” “Not equal,” and more);
  • VALUE TO COMPARE ㅡ a text field that allows entering or selecting values to compare fields dynamically, as well as applying macros;
  • +Add New Condition ㅡ button that adds another FIELD, OPERATOR, and VALUE TO COMPARE set of fields to compare the form’s field with the specific value;
  • Set value only if field is empty ㅡ a toggle that, if enabled, allows setting the needed value only for empty fields.

Pressing the “Update” button closes this pop-up and saves the settings.

More details on how to use conditional logic in forms can be found in the Conditional Logic for Form Fields on WordPress article.

  • STARTING FROM DATE and LIMIT DATES TO ㅡ the fields of the Value settings that allow users to set the earliest time and the latest time in the “yyyy-mm-dd” format, or setting them dynamically (by pressing the “Dynamic Tag” icon) or using the macros (pressing the “wrench” icon).

Field

The Field setting is presented by the Is Timestamp toggle, which, if enabled, allows saving the date as a timestamp instead of the default plain date. Unlike the plain date data, the timestamps can be sent and used in some third-party apps like Google Calendar.

field settings of the datetime field

Validation

The Validation tab includes the VALIDATION TYPE field with three options:

validation settings of the datetime field
  • Inherit ㅡ an option that sets the validation to be inherited from the form arguments;
  • Default ㅡ an option that sets the native validation that works by a browser;
  • Advanced ㅡ an option that sets the advanced rules for validation. If pressed, the FIELD IS EMPTY text fields will be shown, which are intended to type the corresponding text or use a macro if the validation is not completed.

Read the Advanced Form Validation and Advanced Field Validation with JetFormBuilder: Use Cases tutorials for a better understanding.

Advanced

The Advanced section includes the following fields:

advanced settings of the datetime field block
  • Add Prev Page Button ㅡ a toggle that enables the PREV PAGE BUTTON LABEL, a field for inserting text that will be displayed on the corresponding button (if added);
  • FIELD VISIBILITY 一 a drop-down list that allows selecting who can observe the block. It includes the following options: “For all,” “Only for logged in users,” or “Only for NOT-logged in users”;
  • CSS CLASS NAME 一 a text field that allows inserting an additional CSS class to design the block field.

The JetFormBuilder Plugin: Looking Through Advanced Settings tutorial explains how to configure the Advanced settings. 

Styling the Block

If one has the free JetStyleManager plugin installed and activated, the “Block Style” button will appear in the top right corner. This plugin customizes the Alignment, Border, ColorMargin, Padding, and Typography settings of the Datetime Field.

jetstylemanager settings

That’s all about the Datetime Field available with the JetFormBuilder plugin for WordPress forms.

The Date Field block is intended to insert/select the date manually in the “yyyy-mm-dd” format and set it dynamically or using a macro.

On the front end, the Date Field is presented as a text field that allows typing the needed date in the “mm/dd/yyyy” format. Pressing a “calendar” icon allows selecting the required date. Also, clicking the “Clear” and “Today” links allows resetting the date or setting the current date correspondingly.

the date field block on the front end

Inserting the Date Field

This block can be added to any form by finding it in the search bar of the block inserter (the “plus” icon) and placing it where required.

adding the date field block

Also, the Date Field can be inserted as part of JetFormBuilder’s embedded templates, presented in the Welcome Block, and patterns.

Settings of the Date Field

The settings of the Date Field include the General, Value, Field, Validation, and Advanced settings.

settings of the date field block

General

The General tab is presented by the following three fields: FIELD LABEL, FORM FIELD NAME, and FORM DESCRIPTION fields:

general settings of the datetime field
  • FIELD LABEL ㅡ a field for inserting the field’s label;
  • FORM FIELD NAME ㅡ a field for the field’s name. This field will be filled out automatically after the text is added to the FIELD LABEL field, but it can be corrected according to requirements. However,  the only Latin letters (lower case), numbers, `-` or `_` chars are allowable;
  • FIELD DESCRIPTION ㅡ a non-required field for more information on this field, e.g., the field’s description.

Value

These settings allow adjusting pre-defined values, selecting them dynamically, using macros, and providing calculations. They are:

value settings of the date field
*
  • DEFAULT VALUE ㅡ a field that allows adding the default value shown in the Date Field. Also, a dynamic value can be set by pressing the “Dynamic Tag” icon and choosing the needed option in the SOURCE drop-down list of the Edit Preset pop-up. The SOURCE drop-down list has the following options: “Post,” “User,” “URL Query Variable,” “Option Page,” and ” Related Items.” Each selected option activates the appropriate field, allowing one to choose the needed data. Also, this pop-up includes the Restrict access toggle that allows restricting users who are allowed to edit this value. The required settings should be saved by pressing the “Update” button.
edit preset pop-up

In addition, the value can be set into the DEFAULT VALUE field by using a specific form’s fields, macro, or  filter. In particular, pressing the “wrench” icon opens a list with Fields, Extra macros, and Filters.

usage of fields in the default value field

The following macros are available for the Date Field:

  • %CT::CurrentDate% — a macro that returns the date as a timestamp (to use this macro, the quotation marks are required as follows: ‘%CT::CurrentDate%’);
  • %CT::Min_In_Sec% — a macro that returns the number of milliseconds in one minute  (can be used, for example, to get the difference between dates in minutes);
  • %CT::Day_In_Sec% — a macro that returns the number of milliseconds in one day (can be used, for example, to get the difference between dates in days);
  • %CT::Month_In_Sec% — a macro that returns the number of milliseconds in a month (can be used, for example, to get the difference between dates in months);
  • %CT::Year_In_Sec% — a macro that returns the number of milliseconds in a year (can be used, for example, to get the difference between dates in years).

More details about using macros in the Date Field, Datetime Field, and Time Field can be found in the Macros in Date, Time, and Datetime Fields tutorial.

Also, values in the DEFAULT VALUE and other Value fields can be modified by applying the filters to provide calculations, return timestamps, etc. The following filters are available for the Date Field:

  • ifEmpty — a filter that returns the value passed in the argument if the  macro returns an empty value;
  • Timestamp — a filter that returns the time stamp and is usually used in conjunction with Date & Datetime and Time Field;
  • length — a filter that returns the length of the string or array;
  • toDate — a filter that gets the timestamp from the macro and formats it according to the Date field format;
  • addMin, addHour, addDay, addMonth, addYear — filters that add minutes, hours, days, months, and years correspondingly  via an argument to a macro that returns a date or timestamp;
  • subMin, subHour, subDay, subMonth, subYear — filters that subtract minutes, hours, days, months, and years correspondingly  via an argument to a macro that returns a date or timestamp;
  • setMin, setHour, setDay, setMonth, setYear — filters that set minutes, hours, days, months, and years correspondingly via an argument to a macro that returns a date or timestamp.

Finally, a condition-dependent value can be added to this field by pressing the “+ Add Dynamic Value” button. Then, the Edit Dynamic Value pop-up will be open with the following fields:

edit preset pop-up
  • VALUE TO SET ㅡ a field that supports multiple values and allows entering or selecting them dynamically, as well as applying macros;
  • APPLY TYPE ㅡ a drop-down list that specifies how to apply the needed condition: “On change conditions result,” “Once,” or “Always”;
  • FIELD ㅡ a drop-down list that allows selecting the required form’s field to compare;
  • OPERATOR ㅡ a drop-down list that allows selecting the needed operator to compare (e.g., “Equal,” “Not equal,” and more);
  • VALUE TO COMPARE ㅡ a text field that allows entering or selecting values to compare fields dynamically, as well as applying macros;
  • + Add New Condition ㅡ button that adds another FIELD, OPERATOR, and  VALUE TO COMPARE set of fields to compare the form’s field with the specific value;
  • Set value only if field is empty ㅡ a toggle that, if enabled, allows setting the needed value only for empty fields.

Pressing the “Update” button closes this pop-up.

More details on how to use conditional logic in forms can be found in the Conditional Logic for Form Fields on WordPress article.

  • STARTING FROM DATE and LIMIT DATES TO ㅡ the fields of the Value settings that allow users to set the earliest time and the latest time in the “yyyy-mm-dd” format, or setting them dynamically (by pressing the “Dynamic Tag” icon) or using the macros (pressing the “wrench” icon).

Field

The Field setting is presented by the Is Timestamp toggle, which, if enabled, allows saving the date as a timestamp instead of the default plain date. Unlike the plain date data, the timestamps can be sent and used in some third-party apps like Google Calendar.

field settings of the date field

Validation

The setting is presented by the VALIDATION TYPE field with three buttons:

validation settings of the date field

  • Inherit ㅡ a button that, if pressed,  sets the validation to be inherited from the form arguments;
  • Default ㅡ a button that sets the native validation that works by a browser;
  • Advanced ㅡ a button that sets the advanced rules for validation. If pressed, the FIELD IS EMPTY text fields will be shown, which are intended to type the corresponding text or use a macro if the validation is not completed.

More information on the advanced validation via forms and fields can be found in the Advanced Form Validation and Advanced Field Validation with JetFormBuilder: Use Cases tutorials.

Advanced

The Advanced settings include the following fields:

advanced settings of the date field block
  • Add Prev Page Button ㅡ a toggle that enables the PREV PAGE BUTTON LABEL text field for the text that will be displayed on the corresponding button (if added);
  • FIELD VISIBILITY 一 a drop-down list that allows selecting who can observe the block and has the “For all,” “Only for logged in users,” or “Only for NOT-logged in users” options;
  • CSS CLASS NAME 一 a text field for adding an additional CSS class to design the block field.

For an in-depth understanding of configuring the Advanced settings, read the  JetFormBuilder Plugin: Looking Through Advanced Settings tutorial. 

Styling the Block

After installation and activation of the free JetStyleManager plugin, the “Block Style” button will appear in the top right corner. This plugin configures the Alignment, Border, ColorMargin, Padding, and Typography settings of the Date Field.

That’s all about the Date Field available with the JetFormBuilder plugin for WordPress forms.