JS SDK

Release 3.8.0 (April 2, 2024)


Improvements

Bug Squashing Bonanza!

  • We heard you! We have fixed a bug where the option width couldn’t be removed from multi-select fields (NO-459)
  • We’ve squashed a bug that caused the SDK to crash when encountering invalid JoyDoc payloads (NO-432).
  • Identifier Enhancements (NO-469)
    • Customize identifiers your way! You can now enable or disable custom identifier creation.
    • Filter fix! We’ve wrestled with a pesky bug where identifier filter results wouldn’t clear after you removed your search query. Now your filters will reset properly, making it easier to find exactly what you’re looking for.
  • We’ve made some subtle adjustments to the interface to create a cleaner and more streamlined look (NO-433).
    • Field margin control for a polished look.
    • Default page padding for a consistent design.
    • Read-only mode to make any field read-only by the read-only option on field settings.

Release 3.7.1 (Mar 11, 2024)


Improvements

  • Spring cleaning! We tidied up some errors for a sparkling console (NO-398)
  • Unleash the PDF Beast! Our new developer-friendly SDK lets you forge PDFs with ease (NO-355)
  • Say goodbye to drab, hello to fab! SDK Themes are here to elevate your forms! (NO-396)
  • Performance on point! This update fine-tunes your experience for improved smoothness (NO-450)
  • New Look, Who Dis? We've revamped your favorite SDK for a stunning experience (NO-58)

Release 3.6.1(Feb 19,2024)


Improvements

  • Fix to prevent crashes after Loading External Form (NO-395)

Release 3.6.0 (Feb 6,2024)


Improvements

  • Added support for original file dimensions in PDF Form Engine (NO-349)
  • Enabled text wrapping for text based fields (NO-307)
  • Field icon added to field settings(NO-315)
  • Fix for display corresponding field settings of individual table cells when focused (NO-310)
  • Style fix to ensure field wrapping doesn’t cut off text within pdf and pdf exports (NO-107)
  • Fix for hidden property causing validation issue in older SDK version (NO-377)

Release 3.5.0 (Dec 16, 2023)


Improvements

  • Conditional logic (#NO-288)
  • onFocus and onBlur event handlers now supported in SDK (#NO-223)
  • Support for initialPageId on SDK for setting the initial page when the form is displayed (#NO-297)
  • Enhancements to PDF exports (#NO-250)
  • Enhancements to responsive web view for mobile form filling (#NO-252)
  • PDF form view enhancements (#NO-279)
  • Enhancements to required field indicators (#NO-295)
  • Style fix for Identifier selector (#NO-278)

Breaking Changes

  • Improved vanilla JS implementation for JS modules and CDN approach. See new implementation methods below (#NO-277)

Javascript Usage (CDN)

<!DOCTYPE html>
<html>
  <head>
    <title>Joyfill for Javascript Example</title>
    <base href=".">
    <meta charset="UTF-8" />
    <script src=" https://cdn.jsdelivr.net/npm/@joyfill/components@latest/dist/joyfill.min.js"></script>
  </head>
  <body>
    <div id="joyfill"></div>
    <script>

      Joyfill.JoyDoc(
        document.getElementById('joyfill'),
        {
          mode: 'edit',
          onChange: (changelogs, doc) => console.log('onChange: ', changelogs, doc),
        }
      );

    </script>
  </body>
</html>

Javascript Usage (Module)

//index.html

<!DOCTYPE html>
<html>
  <head>
    <title>Joyfill for Javascript Example</title>
    <base href=".">
    <meta charset="UTF-8" />
  </head>
  <body>
    <div id="joyfill"></div>
    <script type="module" src="./index.js"></script>
  </body>
</html>

//index.js

import Joyfill from "@joyfill/components/dist/joyfill.min.js";

Joyfill.JoyDoc(
  document.getElementById('joyfill'),
  {
    mode: 'edit',
    onChange: (changelogs, doc) => console.log('onChange: ', changelogs, doc),
  }
);

Release 3.4.2 (Oct 19, 2023)


Improvements

  • Fix for chart field label read-only error in build.
  • Misc enhancements and bug fixes.

Release 3.4.1 (Oct 18, 2023)


Improvements

  • Identifier selector field customization. Learn more https://docs.joyfill.io/docs/customize-settings (NO-87)
  • PDF dynamic field measurement enhancements (NO-113)
  • Auto remove individual table cell field positions associated with deleted columns (NO-254)
  • Misc enhancements and bug fixes

Release 3.3.1 (Oct 4, 2023)


Improvements

  • Page duplication support with page menu and duplicatePage helper method (#NO-95)
  • Table field now supports image uploading directly to table image cells (#NO-114)
  • Field tooltips now supported for additional field context and instructions (#NO-130)
  • Misc enhancements and bug fixes

Release 3.2.0 (Sep 12, 2023)


Improvements

  • Joyfill template library UI and visual requirements support (#NO-17)
  • Table columns are responsive by default now (#NO-17)
  • Added field groups display mode for table fields (#NO-17)
  • Added rich text field support (#NO-17)
  • Multi image upload adds the to current images and no longer overwrites them (#NO-149)
  • Table field settings enhancements (#NO-163)
  • Signature is properly scaled to fit within field dimensions (#NO-172)

Release 3.1.0 (Aug 22, 2023)


Improvements

  • Multi-user collaboration support via changelogs.
  • Changelogs are now passed directly to the onChange handler. See package README.
  • Added helper methods for generating and duplicating documents and templates. See package README.
    • getDefaultDocument get a default Joyfill Document.
    • getDefaultTemplate get a default Joyfill Template.
    • getDocumentFromTemplate get a Joyfill Document generated from a Joyfill Template.
    • duplicate duplicate a Joyfill Document or Template. Useful for adding a template from your library to an individual group.
  • Field lazy loading. See package README

Breaking Changes

  • onChange argument list has been changed. onChange now only receives two arguments: changelogs and doc. See README.