Module to work with the drupal esign module and add the signature as a file to a CiviCRM activity.
Does not work with CiviCRM 4.7.20 (a blank file is generated). Tested with CiviCRM 4.7.29, some earlier versions may work!.
Download and install:
For each webform that you want to save the signature to an activity you need:
esign
(one per signature needed).esign_custom_field
; type: hidden
; value: A comma-delimited list of custom field names (e.g., custom_1
or custom_1,custom_2
). If multiple custom fields are specified, they will correspond to the signature fields in the order you add them to the form. See Setup Examples below.esign_entity
; type: hidden
; value: A comma-delimited list of entities (e.g., Activity
or Activity,Participant
). If multiple entities are specified, they will correspond to the signature fields in the order you add them to the form. See Setup Examples below.esign_entity_type_id
; type: hidden
; value: A comma-delimited list of Activity Type IDs (for Activities and Cases) or Event IDs(for Participants). If multiple entitiy IDs are specified, they will correspond to the signature fields in the order you add them to the form. See Setup Examples below. You can also specify All
instead of an entity ID; in that case, all records of this entity type will receive the signature.esign_entity_type_id
field.Optionally, file the activity on a case by enabling a Case within the CiviCRM processing and setting the Activity to "File on Case".
Use case | esign_custom_field example |
esign_entity example |
esign_entity_id example |
notes |
---|---|---|---|---|
A single custom field on a single activity | custom_9 | Activity | 70 | |
A single custom field on a single activity | custom_9 | Participant | 3 | |
A single custom field on multiple activities (must be different types) | custom_9,custom_9 | Activity,Activity | 70,71 | |
Two custom fields on a single activity | custom_9,custom_10 | Activity,Activity | 70,70 | Note that the same activity_type_id is given twice |
Different custom fields on different activities (different types) | custom_9,custom_10 | Activity,Activity | 70,71 | |
An activity and a participant | custom_9,custom_10 | Activity,Participant | 70,3 | activity_type_id for activity, event_id for participant |
All new activities | custom_9 | Activity | All | |
All participant records and a "meeting" activity | custom_10,custom_9 | Participant,Activity | All,1 |