Visual Forms JS Library
This client-side JavaScript library allows you to embed a visual form on your own website to fill out PDF templates and generate PDFs.
Changelog
Section titled “Changelog”2.7.1 Latest
Section titled “2.7.1 ”Released on Jul 10, 2025
- Updated JavaScript build process and dependencies
Released on Jan 31, 2025
- Added support for template versioning. You can now specify a template version when showing the form.
Released on Dec 4, 2024
- Fixed issue with formula fields that couldn’t operate on individual fields in arrays.
Released on Oct 17, 2024
- Fixed issues with clicking “Next” to select the next field. We will now show the “all fields completed” message once the user has clicked through all fields in the form (including optional fields.) We also show the completed message if all required fields are filled out but no field is currently selected.
Released on Jul 19, 2024
- Improved signature field layout on mobile devices and tablets
- Fixed some issues with zooming and scrolling
Released on Dec 19, 2023
- Fix drop down menu not showing scrollbar
Released on Dec 19, 2023
- Add support for formula calculations
2.5.10
Section titled “2.5.10”Released on Aug 25, 2023
- Add test flag to enable test submissions through the embedded form
Released on Aug 18, 2023
- Updated styling, upgraded library for select elements
Released on Aug 2, 2023
- Added
DocSpring.setField(name_or_id, value)
function to set the value of a field. - Updated
DocSpring.focusField(name_or_id)
function to accept either a field name or a numeric ID.
Released on Jun 8, 2023
- Fixed issue with signature modal when phone screen is rotated
Released on Jun 16, 2022
- Added “shrink to fit” support for multi-line fields using the Truncate: “Shrink to Fit” option. The font size will now decrease to fit all of the text in the field. (Please note that this is an approximation. The text may be slightly different on the generated PDF.)
Released on Mar 25, 2022
- Dates provided as static form data are now formatted correctly using the specified date format
Released on Mar 10, 2022
- Added the Lovtony Script font as an option for signature fields
Released on Apr 6, 2021
- Added a
footerHTML
option that allows you to configure content for a custom footer.
Released on Mar 4, 2021
- Added support for shrink-to-fit on multi-line fields
Released on Mar 2, 2021
- Added support for background color, opacity, text alignment for fields with static data
- Added
fieldOverrides
option for visual forms, so that you can override field properties (e.g.required
,hidden
) - Added documentation for
DocSpring.***()
functions to control the form UI:DocSpring.clearForm()
DocSpring.submitForm()
DocSpring.focusNextField()
DocSpring.focusField(id)
- Added a “Preview Mode” that allows you to use the visual forms as a read-only preview for static data.
previewMode: true
previewModeButtonLabel: "Agree"
onPreviewModeButtonClicked: function () { ... }
Released on Jan 12, 2021
- Added support for image uploads (click to select an image file)
Released on Dec 15, 2020
- Fixed the “terms of service” link so that it opens in a new window. (Also removed the
X-Frame-Options
header from this page, so that it is possible to render inside an embedded iframe.)
Released on Nov 24, 2020
- Fixed signature modal layout on various tablet and mobile screen sizes
2.3.12
Section titled “2.3.12”Released on Oct 28, 2020
- Added support for the “Invert Boolean Condition” field option, where a checkbox will show as checked when the value is false.
- Allow a checkbox to be unchecked if it is part of an optional “radio group” with string conditions.
2.3.11
Section titled “2.3.11”Released on Oct 7, 2020
- Added a new
skipAgreeToTermsOfService
option for visual forms. SettingskipAgreeToTermsOfService: true
will skip the “Agree to Terms” step, so clicking the “Continue” button will immediately submit the data and generate a PDF. NOTE: This option is only available for Visual Forms, and it is not available for Data Requests.
2.3.10
Section titled “2.3.10”Released on Sep 27, 2020
- Fixed issue where fields could be horizontally shifted on Windows and Linux when the form was rendered with a vertical scrollbar.
Released on Sep 24, 2020
- Fixed vertical alignment for text in select dropdowns. Text should now be vertically centered properly.
Released on Sep 9, 2020
- For Data Request users: Added support for all
field_overrides
(from the Generate PDF API requests), so that field options can be configured dynamically for each data request.
Released on Aug 7, 2020
- Added a new
signatureLegalDisclaimerMessage
string option, addedformData
parameter foragreeToTermsTitle
andagreeToTermsMessage
string options. (Only used with Data Requests.)
Released on Aug 4, 2020
- Added
agreeToTermsTitle
andagreeToTermsMessage
string options. (Only used with Data Requests.)
Released on Jun 18, 2020
- Added support for multiline fields so that users can enter text with multiple lines. Also added support for the “Number of Lines” option, which vertically divides the field into a fixed number of lines.
Released on Jun 6, 2020
- Fixed bug with field_overrides option for submissions with data requests. If a field override is provided, fields will now be correctly marked as required or optional in visual forms.
Released on Jun 4, 2020
- Fixed a bug where select dropdown menus were hidden behind other fields.
Released on Apr 28, 2020
- Fixed error when opening the signature font drop-down and pressing backspace
- Added ‘Type Signature’ heading above the name input when typing a signature
Released on Apr 27, 2020
- Made some internal changes for better error handling and debugging
Released on Apr 25, 2020
- Fixed crash for any browsers configured to block all cookies. Before this fix, the loading spinner would sometimes get stuck and the signing iframe would fail to load.
Released on Apr 7, 2020
- Increased legibility of tabs heading in the signature modal.
Released on Apr 2, 2020
- Fixed bug where static form data could not be overridden after clearing a field
Released on Mar 1, 2020
- Show all previous signatures and date fields for multiple data requests
Released on Jan 17, 2020
- Allow past dates to be selected in date pickers
Released on Nov 25, 2019
- Improve date picker styles
- Improve text rendering in fields
Released on May 20, 2019
- Renamed FormAPI to DocSpring