Common field properties

This article covers common field properties, shows their location in web editor’s UI, and provides examples of how to use them in custom JavaScript.

SharePoint field

These read-only properties are only available for fields from the connected SharePoint list.

Name

The internal name of the SharePoint column.

Field's name

JavaScript

Use this property to reference fields in custom JavaScript:

fd.rendered(() => {
   // access the field using its Name:
   fd.field('Title').value = 'Project Delta';
});

Important

The Internal name can’t be changed. You can only change the display name of the column.

Required

Indicates whether the field is required.

Field's required status

You can change this property in the SharePoint column settings:

Column settings page - required

Or using the JavaScript:

// returns the field's required status as true/false
fd.field('Text1').required;

// sets the field's required status
fd.field('Text1').required = true;

Type

Indicates the column type.

Column type

You can change the column type in the SharePoint column settings:

Column settings page - type

Airtable field

These read-only properties are only available for fields from the connected Airtable table.

Name

The internal name of the Airtable field. This field is read-only and can’t be changed.

Field's name

JavaScript

Use this property to reference fields in custom JavaScript:

fd.rendered(() => {
   // set the field's title using its name
   fd.field('FieldName').title = 'Last Name';
});

Title

Field title provided by Airtable. To change it, modify the corresponding column name in Airtable.

Field's title

Type

Field type provided by Airtable. This property is read-only and can’t be changed.

Field's type

General

Title

Specify text of the title that will appear next to the field.

Field's title

Toggle Title’s visibility on/off:

Hide Field's title

Title can be changed directly on the form after a double click:

Edit Field's title

JavaScript

Use this code to get or set the field’s title dynamically:

// returns the field's title as a string
fd.field('Text1').title;

// sets the field's title
fd.field('Text1').title = 'Last Name';

Name

Note

This property is only available for regular fields. See the read-only equivalent:

A unique identifier for the field.

Field's name

With Name, you can:

  • Identify the field in form submissions

  • Read the field’s value in Power Automate, Zapier, or Make automated workflows

  • Select the field in custom JavaScript

    fd.rendered(() => {
        // Surname is the field's Name property:
        fd.field('Surname').value = 'John Doe';
    });
    

Important

Do not change field’s Name after the form has been in use, or you might lose saved data or break your automation.

Hint

Note

This property is only available for Single-line Text, Multi-line Text, Number, Drop Down, Date and Time, and Date fields.

Defines a placeholder text that appears in the input box before a user starts typing:

Hint property

JavaScript

Use this code to get or set the field’s placeholder text dynamically:

// sets the field's Hint
fd.field('FieldName').placeholder = 'Enter your name';

Description

Add a description to the field.

Field's description

It appears as small text right under the field.

Field's description on the form

JavaScript

Use this code to get or set the field’s description dynamically:

// returns the field's description as a string
fd.field('Text1').description;

// sets the field's description
fd.field('Text1').description = 'New description';

Read-only

Note

This property is only available for SharePoint and Airtable fields.

Define whether a user can view or edit the contents of the field:

Read-only property

Required

Note

This property is only available for regular and Airtable fields. See the read-only equivalent for SharePoint fields

Define if a user needs to fill this field to submit a form.

Field's required status

Required status can also be changed directly on the form via the Asterisk button:

Field's required status button on the form

JavaScript

Use this code to get and set field’s required status

// returns the field's required status as true/false
fd.field('Text1').required;

// sets the field's required status
fd.field('Text1').required = true;

Layout

Select if the title appears to the left of the field, or right above it.

Field's orientation

Layout can also be changed directly in the context menu of the selected field:

Field's orientation button on the form

Class

Add a CSS class to the field, which comes in handy with CSS or even JavaScript code. This will work like class attribute for an HTML tag.

Field's class

You can add the same class to multiple fields, and use a single CSS rule to modify their appearance. For example, add the following code in the CSS editor to give fields with my-class a blue background, white text, rounded corners, and a little bit of padding:

.my-class {
    color: #FFFFFF;
    padding: 10px;
    background-color: #1E90FF;
    border-radius: 30px;
}

Field's class with CSS on the form

To access this property, click the “More options” bar at the bottom of General category.

The "More options" bar

Style

Add custom CSS style to the field. This works like style attribute for an HTML tag.

Field's style

For example, make the field invisible to users, while keeping it usable in JavaScript:

display: none;

As another example, add a thin gray border around the field:

padding: 10px;
border: 1px solid #CED4DA;

Field's style applied on the form

To access this property, click the “More options” bar at the bottom of General category.

The "More options" bar

Rules

Add a set of conditions to hide or disable the form element based on form state. Click the gear icon inside the respective property to manage them:

Rule properties, available in the property inspector in design mode

Each condition consists of a field to check, the check to perform, and optionally another field or value to check against. These conditions fall under the following categories:

  • Checking whether a field is valid or empty

  • Comparing a field value with another field or a fixed value

  • Checking whether a field value matches any of the given values

Dialog to manage hide conditions

Select whether ANY or ALL conditions should be met to hide or disable the form element:

ANY or ALL options in hide conditions dialog

For more complex conditional logic, use the custom JavaScript framework.

Hide

Define one or more conditions to hide this form element based on form state. To manage these no-code conditions, click the gear icon.

Hide property, available in the property inspector in design mode

Disable

Define one or more conditions to disable this form element based on form state. To manage these no-code conditions, click the gear icon.

Disable property, available in the property inspector in design mode

Title

These properties allow you to customize appearance of the field’s title.

Width

Specify in pixels how much space should the field’s title take.

Field's Title width

Font

Change the formatting of the field’s title using these settings:

  • font size:

    Field's Title font size

  • font color. Use the color picker or enter the hex color code:

    Field's Title font color

  • font style: normal, bold, or italic:

    Field's Title font style

Wrap

Select if the title’s text should wrap in multiple lines when there is not enough space, or just be shortened until it fits (with dots… at the end).

Field's Title wrap

Control

These properties allow you to customize appearance of the field’s main area.

Width

Specify in pixels how much space should the field’s input box take.

Field control's width

Font

Change the formatting of the field’s input box using these settings:

  • font size:

    Field's input box font size

  • font color. Use the color picker or enter the hex color code:

    control's font color

  • font style: normal, bold, or italic:

    Field control's font styling