by iDevIT

SuiteCRM Signature Field Plugin
Add signature fields directly from the studio to allow your prospect to agree and sign your records.
Add Signature fields on any Studio-enabled module (base and custom modules), and print it on the PDF templates !

Cancel at any time!
Free Trial

Adding the field to AOS PDF Templates

Signature Field is really convenient to receive Customer agreement directly on your tablets or phones.

If you need to generate / print back any document containing the Customer signature, you will have to create a PDF Template inside SuiteCRM PDF module.

By default, SuiteCRM is not compatible with Signature field type and the PDF engine is not compatible with customizations and plugins.

To open the engine to new fields type, you will have to edit one file in your SuiteCRM instance, pasting three lignes of code.

Step by Step procedure :

  1. Edit the file located in /modules/AOS-PDF_Templates/templateParser.php
  2. At ligne 105 (after the IF type="image") paste the following code juste before the final "else" statement :
} elseif ($field_def['type'] == 'Signature') {
                        $repl_arr[$key . "_" . $fieldName] = '<img src="' . $focus->$fieldName . '" width="'.$field_def['width'].'" height="'.$field_def['height'].'"/>';

You're done !

Now, create a PDF Template inside SuiteCRM (for example here linked to Quotes module, where we previously created a signature field)

PDFTemplate.png

Then go on a Quote and click the Actions Menu to reveal the entry Print as PDF
ActionsMenu.png

SuiteCRM is generating and then downloading the PDF.

Open it in your browser and check that the signature is present :
PDF.png

Saving Comment Saving Comment...