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.
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]
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 8 years, 1 month ago by
tameroski.
-
This reply was modified 8 years, 1 month ago by
tameroski.
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.
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.
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’;