Generating Documents

Templates

After Generation

Extending Legal Signing

  • legalsigning_blocks_documents_request_per_page

    Description This JavaScript hook allows you to control how many documents in the Document Hub are returned per request. This allows you to fine tune the request size to further chunk up fetching documents and setting this to a lower number could improve performance of the Document Hub if you have a large number of…

  • fg_legalsigning_post_session_status_update

    Description This action hook allows you to trigger custom code execution when a signing workflow status is updated from one status to another. Usage The statuses that can be used with the hook are as follows: Parameters Since This hook was added in Legal Signing 3.0.

  • fg_legalsigning_post_signer_status_update

    Description This action hook allows you to trigger custom code execution after a signer’s status has been updated. Note: this hook won’t be triggered for the first signer, as the first signer is only created on the initial form submission, but is never updated beyond that in a way that would trigger this hook. Usage…

  • fg_legalsigning_pdf_args

    Description This filter allows you to modify the details of the request to generate a document before it is sent to the Legal Signing API for generation. Usage Parameters $pdf_meta arrayAn array containing all the PDF meta data. Example: $feed arrayThe current Feed object. $entry arrayThe current Entry object. $form arrayThe current Form object. Examples…

  • fg_legalsigning_form_path

    Description This filter is allows you to change the folder where generated documents are stored for a specific form. Usage Parameters Examples This example shows how to change the form path for a specific form ID. Since This filter was added in Legal Signing 1.0

  • fg_legalsigning_base_path

    Description This filter allows you to change the base folder where generated documents are stored. Usage Parameters Examples This example shows how to change the default base documents folder to a custom static location. Since This filter was added in Legal Signing 1.0

  • fg_legalsigning_after_generate

    Description This hook allows you to run custom actions after the document has been generated. Usage Parameters $pdf_meta arrayAn array containing all the PDF meta data. Example: $entry arrayThe current Entry object. $form arrayThe current Form object. $feed arrayThe current Feed object.

  • fg_legalsigning_logged_out_timeout

    Description This filter is allows you to change how long the form submitter can download the document if they were not logged in at submission time. Usage Parameters Since This filter was added in Legal Signing 1.0

  • fg_legalsigning_view_pdf_capabilities

    Description This filter is allows you to modify the user capabilities required to view all generated documents. Usage Parameters Since This filter was added in Legal Signing 1.0

  • fg_legalsigning_display_all_templates

    Description By default, Legal Signing displays all templates associated with a license key globally wherever that license key is in use. This filter allows you to only show templates created on the current site in the Templates list and in the Select Template drop down in the feed settings. Usage Parameters Examples Only Show Templates…

  • fg_legalsigning_access_denied_message

    Description This filter allows you to modify the access denied message used when a user cannot access a requested PDF. Usage Parameters Examples This example will change the default access denied message Since This filter was added in Legal Signing 1.0

  • fg_legalsigning_use_image_binary_pre_generate

    Description By default, Legal Signing sends a URL to our API when an image file is to be embedded into a PDF. Our API then attempts to download the image from that URL. This filter allows you to instead enable the sending of a Base64 encoded image binary to the Legal Signing API. This is…