Why my form does not work when I embed the source code in an email?

  • uloyal
    Asked on June 14, 2017 at 12:00 PM

    https://www.jotform.com/build/71621293893462/

    Above is the form built in gmail. 

    Form's full source code is embedded in the MailList Controller email html editor. Where input fields are replaced with fields from database while sending emails. The code is modified automatically to code pasted below.

    When mail is sent and form is submitted there are issues:

    Gmail has the captcha coming which cannot be accepted in marketing campaign.

    When submitted from iphone mail program, it goes to safari where error is shown.

     

    So how to deal with this?????

  • Kevin Support Team Lead
    Replied on June 14, 2017 at 1:21 PM

    Do note that even if you are allowed to add HTML code to your email, may be that some mail servers will not allow such HTML code or some specific HTML tags. 

    JotForm forms need external resources and some JavaScript code that is not supported in emails, it may be removed when the email is viewed or it could be simply interpreted as plain text instead. 

    Also, when using the source code  you will see a captcha when you're not using the latest version of your form so I would suggest you to get a fresh copy of the code. 

    The incomplete values error happens when you have required fields and their names in the source code are not the same than the name in the form builder, getting a fresh copy of the source code without modifying anything in the inputs should resolve this. 

    Basically, you should make sure the field's names are correct in order to avoid getting the incomplete values error. 

    As a suggestion, I would recommend you to first test the source code in a standalone HTML file, once you have ensured it works you could paste the source code in the email HTML editor. 

    Hope this helps. 

  • uloyal
    Replied on June 14, 2017 at 1:45 PM

     

    Why my form does not work when I embed the source code in an email?  Image 1 Screenshot 30

    Please edit details, if Incorrect

    Name *
    First Name Last Name
    Mobile *
    - Country Code Mobile
    E-mail *
    Message
    You may specify your budget, preferances or further expected action
    Get a Call Back
    Why my form does not work when I embed the source code in an email?  Image 2 Screenshot 41
    You are receiving this mail as you have signed up with www.oxyzenhomes.com or responded to sales campaign on newspaper, hoarding, Facebook, Google, Linkedin or any other digital platform either by OXZYEN, OXYZEN PRIME REALTY or developers or their agents using channels operated by us.
    As part of email campaign like this, you will receive offers, deals or promotional discounts. We hope you will like to continue to receive these emails, but, however if you'd rather not receive future e-mails from us, please opt-out here . You may please forward us the suggestions or ideas on support@oxyzen.net. In case of any query, please call us on +91 8080808720 (Monday - Saturday 9:30AM to 6:00PM IST).
    Should be Empty:

  • uloyal
    Replied on June 14, 2017 at 1:48 PM

    I have pasted the source code, which is fresh and same taken from the full source code of the form and you can compare it.

    But, when form submitted in gmail,  one gets capthcha.

    And when submitted in iPhone mail app, error is incomplete value

    There is no change in form source code.

     

     

  • uloyal
    Replied on June 14, 2017 at 1:50 PM

    You can try sending the form source code in a email to gmail or iPhone account and check what happens

     

  • John_Benson
    Replied on June 14, 2017 at 3:13 PM

    It is not recommended to embed the form in an HTML email. Most email providers do not support script in HTML email. You might be able to send it but the recipient provider might block it, tag it as a spam or as a malicious email.

    You will also be having a hard time designing it because there are email providers that don't allow external stylesheets. JotForm is using external stylesheets and scripts.

    I would recommend you sharing or emailing the form's direct link instead. Here's a guide: https://www.jotform.com/help/303-How-to-Send-a-form-via-email