1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

Digital Signature element

May 1, 2021
Digital Signature element

  • Introduction(top)


    The digital signature element provides a canvas where users can sign/draw their name with a mouse or finger.

    Options(top)


    Default
    • Default - It is very unlikely you would want to set a default, but if needed it would have to be in the internal JSON form used by Signature Pad. See the documentation in the lib folder in the plugin folder.
    • Eval - Evaluate the default string as a PHP statement

    Options

    upload_2021-5-1_13-6-15.png
    • Form width - width (px) of drawable area in the form
    • Form height - height (px) of drawable area in the form
    • List width - width (px) of the drawing of the image shown in the list view
    • List height- height(px) of the drawing of the image shown in the list view
    • PDF secret - If you need to show a digsig in a PDF view, and you have access controls on your list that require authentication, you will need to set a PDF secret (any word or phrase, only used internally by Fabrik) to bypass the ACLs, because the PDF rendering is done on the server, out of the scope of the authenticated browser session

    Sample placeholder(top)


    The following sample is for displaying the signature within the article content.
    Steps:
    1. Create the digsig element and make it visible in your list view
    2. Get the url of your signature by right clicking on the digsig image in list view and copying the path of the url.
    3. Replace the url below with your url
    4. Replace the element id and list id with yours below:
    Copy and paste the following into your content:
    $rowid = JFactory::getApplication()->input->getInt('rowid', 0);
    if (!empty($rowid)) {
    echo <<<EOT
    <p><img src="index.php?option=com_fabrik&task=plugin.pluginAjax&plugin=digsig&method=ajax_signature_to_image&format=raw&element_id=226&formid=8&rowid=$rowid&repeatcount=0"></p>
    EOT;
    }​
  • Loading...