1. The 3.8 code for Fabrik is now available on github, in the 'master' branch. If you are familiar with updating Fabrik from github, we would appreciate it if you could test this code on J! 3.8 for us. Once we have some feedback, we'll build a 3.8 release.

Digital Signature element

Mar 28, 2017
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)


    View attachment 10399
    • 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
    digsig-options.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

    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...