• Resolved mariosp89

    (@mariosp89)


    The Signature Canvas is not showing in the form.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author tameroski

    (@tameroski)

    Hi

    Looks like the signature id attribute is “wpcf7_signature-director-3_signature” instead of “wpcf7_signature-director-3-signature”. Can you paste you form configuration, please ? There might be something wrong in it.

    Thread Starter mariosp89

    (@mariosp89)

    Hi tameroski,

    What do you mean “form configuration”? This?

    Duly authorised Director(s) / Representative(s)
    <label> Name *
    [text* director-1] </label>
    [signature* signature-director-1]

    <label> Name *
    [text* director-2] </label>
    [signature* signature-director-2]

    <label> Name *
    [text* director-3] </label>
    [signature* signature-director-3]

    Plugin Author tameroski

    (@tameroski)

    Ok, i think i was drunk cos this is nothing to do with the signature ID.

    For some reason the canvas initialisation my plugin does on document ready is not taken into account. You’ll have to fire it again yourself, probably after your theme’s own init, by running :

    $('div.wpcf7 > form').wpcf7InitSignatures();

    I guess the theme must have a “custom script” section where you can add this.

    • This reply was modified 6 years, 12 months ago by tameroski.
    • This reply was modified 6 years, 12 months ago by tameroski.
    Thread Starter mariosp89

    (@mariosp89)

    I put this line of code in the ‘Your custom HTML/JS code’ section of my Theme but nothing has change.

    If it’s helpful, the theme is Invetex.

    Plugin Author tameroski

    (@tameroski)

    I just noticed the signature canvas is in a Tab which is not displayed on page load.

    There was a similar issue in this thread, where i explain things. Maybe it’ll help.

    Thread Starter mariosp89

    (@mariosp89)

    FYI,

    I made it worked by changing the following:

    class-wpcf7-signature-public.php:
    $atts_canvas[‘id’] = ($tag->get_id_option() != ” ? $tag->get_id_option() : “wpcf7_”.$tag->name.”_signature”);
    ——–>
    $atts_canvas[‘id’] = ($tag->get_id_option() != ” ? $tag->get_id_option() : $tag->name);

    scipts.js:
    canvas.width = canvas.offsetWidth * ratio;
    canvas.height = canvas.offsetHeight * ratio;
    ——->
    canvas.width = ‘444’;
    canvas.height = ‘222’;

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