• Resolved carlbeaverson

    (@carlbeaverson)


    Hi There,

    I’ve added the signature to my contact form as per the setup documentation and added to the body of the email (using html body type), however when the form is submitted, nothing is returned in the email. I’ve tried adding it to and type, attaching it to the email and also simply having it as a straight URL – nothing is returned.

    Please advise!

    Thanks,

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

    (@tameroski)

    Hi
    This is weird. Are you sure about the signature field ID you’re using in the email ? Can you paste your form and email configuration so i can have a look ?
    Thanks.

    Thread Starter carlbeaverson

    (@carlbeaverson)

    Hi There,

    Thanks for your response, it appears that the signatures are not recognised as “filled out” by the form. As you can see from the link below, the fields are now required and a signature has been added, however it is flagged as incomplete by CF7.

    View post on imgur.com

    Can you please advise why this would be the case? I’ve tested on firefox, chrome and safari with all the same results.

    If I could email you I can send a link for the staging site (with credentials).

    Thanks,
    Carl

    Plugin Author tameroski

    (@tameroski)

    Hi

    Your form and email settings seams fine to me. I made a test on my own server in a similar configuration and it worked. Can you send your details to tameroski at gmail dot com so i can have a look please ? Thanks !

    Plugin Author tameroski

    (@tameroski)

    Ok, i see what’s happening …
    The submit button is on another tab, so by the time the form is submitted, the form is hidden, and so are the canvas used by the signatures fields, which makes their values empty (hidden canvas have no values by design). And my plugin is filling hidden inputs with the canvas values on form submit. That’s why you have errors.
    So force-filling the hidden fields before switching tabs should do the job. This should be possible by calling the plugin’s beforeSubmit() function on each signature object or something like that.
    I don’t have much time this week to work on this, but i’ll try to find a workaround next week if still needed.

    Thread Starter carlbeaverson

    (@carlbeaverson)

    Thanks for the information!

    I managed to resolve the issue by revealing the panel with the signature fields before submitting the form.

    Much appreciated!

    Plugin Author tameroski

    (@tameroski)

    Good to know it’s fixed.

    As i said before, you could also be using the provided functions to force-fill the inputs like this :

    
    (function($) {
        $(document).ready(function (){
        	$('#privacy-nav .button').on('click', function(){ // When going to next tab
    	        $.each(signatures, function(i, signature){
    	        	signature.beforeSubmit(); // Act like it is going to be submitted
    	        });
        	});
        });
    })(jQuery);
    

    You probably doesn’t matter anymore but it could be useful to others ??

    i used Contact Form 7 Signature Addon how to send on email and save in data base

    • This reply was modified 7 years, 1 month ago by hansrajsant.
    235agda

    (@235agda)

    Hi Im having the same issue that the form isn’t sending the signature to my email.

    My question is the code you put in to force-fill in the inputs can you please let me know where i am suppose to place that code?

    Thanks!

    • This reply was modified 7 years ago by 235agda.
    Plugin Author tameroski

    (@tameroski)

    Hi @235agda,

    This is the proper way to include javascript in a theme.

    Hope this helps.

    235agda

    (@235agda)

    Thanks for your reply on this and especially how quickly you got back to me. I can’t seem to figure it out and I am sourcing another developers help to implement this.

    Thanks agian

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Signature not added to email (either in body or as attachment)’ is closed to new replies.