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

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.


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