PHP code example of esign / craft-formie-realsuite

1. Go to this page and download the library: Download esign/craft-formie-realsuite library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

esign / craft-formie-realsuite example snippets


use esign\formierealsuite\integrations\crm\Realsuite;
use verbb\formie\events\ModifyFieldIntegrationValueEvent;

Event::on(
    Realsuite::class,
    Realsuite::EVENT_MODIFY_FIELD_MAPPING_VALUE,
    function(ModifyFieldIntegrationValueEvent $event) {
        // $event->value    — the value being sent (modify this)
        // $event->rawValue — the original unmodified value
        // $event->field    — the Formie form field
        // $event->integrationField — the Realsuite destination field
    }
);