• Resolved samthedev

    (@samthedev)


    Hello Support,

    We are using Forminator Pro to add e-signature to a form. So far the form submits well.

    However we noticed the signature is rendered as a link to an image in the email notification. Is there a way to display the actual image in the email like so:

    Kindly point us in the right direction.

    Thank you in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @samthedev,

    There isn’t an out of the box feature regarding this. However, I can confirm our team is considering implementing this as a feature down the plugin’s roadmap.

    In the meanwhile, you can try the following snippet as a workaround which should help to display the image in the email:

    <?php
    
    add_filter( 'forminator_custom_form_after_render_value', function( $value, $custom_form, $field_slug ){
    if( false !== strpos( $field_slug, 'signature-') && preg_match_all('/<a[^>]+href=([\'"])(?<href>.+?)\1[^>]*>/i', $value, $img_url ) ){
    $value = '<img src="'. $img_url['href'][0] .'" />';
    }
    return $value;
    }, 10, 3 );

    You can add the above code as a mu-plugins. Please check this link on how to implement the above code as a mu-plugins:
    https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    Kind Regards,
    Nithin

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @samthedev,

    I just realized this query was related to the Pro plugin. Please do note that this forum is only meant for the free version of Forminator.

    If you have any further queries with the Pro version of Forminator then, please use our support via the following URL:
    https://wpmudev.com/hub2/support/#get-support

    I’m marking this thread as resolved for now.

    Regards,
    Nithin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Signature’ is closed to new replies.