icon Save & Resume

The Save & Resume control allows you to add Submit buttons to your forms. The control is only available for forms with the Saving Drafts property enabled.

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

Submit control


Here you can find properties specifically related to the Save & Resume 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('SaveAndResume1').text = 'Send the form';


You can specify the Width of the submit button in pixels:

Width property

If left empty, the button will take only as much space as necessary for the text, though you can adjust it in Grid Cell properties:

Alignment and Grid Width property


Allows you to change or copy the text that the button will display on the form:

Text property

Saving text

Holds the text that will be displayed when the form is saved.

Saving text property


Allows you to select a type of a button from available types in Bootstrap buttons:

Type property

The color and the appearance of the button will change depending on its type.


Add JavaScript to execute when the button is clicked. With this property empty, the button won’t do anything.

By default, the button includes the following code; you can also add a code to run before it:

return fd.saveDraft();

Click code


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

Control's class

The same class can be applied to multiple fields and controls, and then you can use CSS to modify the appearance of these. For example, here we’ve used the following CSS code in the CSS editor to give controls with my-class a rounded appearance:

.my-class {
    border-radius: 12px!important;


Add custom CSS style to the control. This will work as a style attribute for an HTML tag.

Control's style

You can apply different styles to the control. For example, the following style will add a shadow under the submit:

box-shadow: 0 9px #999;

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 text

Get or set the text of the button with the following property:

//return the text as a string

//set the text
fd.control('Control1').text = 'New text for the button';

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;

Get or set script that runs on click

Property that holds JavaScript that is executed when the button is clicked:

//get the script that runs on click

//set the script that runs on click
fd.control('Control1').onclick = 'alert("Submit is clicked!"); return fd.saveDraft();';

//trigger the code to run with JavaScript