Skip to content

Data Requests JS Library

This client-side JavaScript library allows you to embed a signing form on your own website to collect legally binding electronic signatures and generate signed PDFs.

Released on Jul 19, 2024

  • Improved support for mobile devices and tablets.
  • Improved logic for injected CSS when adding iframe to page.

Released on Aug 2, 2023

  • Added DocSpring.setField(name_or_id, value) function to set the value of a field.
  • Fixed DocSpring.focusField(name_or_id) function. You can now focus a field by name or numeric ID.

Released on Apr 6, 2021

  • Added a footerHTML option that allows you to configure content for a custom footer.

Released on Apr 25, 2020

  • For inline iframes: Changed default iframe style to display: block; min-height: 500px;. (display: block removes any space at the bottom of inline iframes.)
  • Added iframeClass and iframeStyle options, so that you can configure the class="" and style="" attributes on the iframe element. (Available for both modal and inline iframes.)

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 24, 2020

  • Improved logging and error reporting to investigate iframe loading issues

Released on Apr 2, 2020

  • Fixed bug where static form data could not be overridden after clearing a field

Released on May 20, 2019

  • Renamed FormAPI to DocSpring

Why haven’t we updated this library recently?

Section titled “Why haven’t we updated this library recently?”

The Data Requests library is a short piece of code that inserts our secure signing iframe into a webpage and provides a JavaScript API to interact with the iframe, so it doesn’t need to be updated very often. The signing experience inside the iframe uses our Visual Forms library.