Tagged: ,

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #319691

    I have a form that I’ve created in Dreaweaver and I copied and pasted that code into the Code block (also tried with text block). The form shows up ok when I publish and visit the page, but when I go back to the code block it is empty. The code block seems to have created a text block that contains the form, but that too is empty.

    I know that you don’t give any support to the code as such, but shouldn’t I be able to paste the following code?

    <form formmethod=”POST” action=”http://XYZ.t.eloqua.com/e/f2&#8243; name=”formContactWordpress”>
    <p>
    <label for=”firstName”>First Name:</label>
    <input name=”firstName” type=”text” required=”required” id=”firstName”>
    </p>
    <p>
    <label for=”lastName”>Last Name:</label>
    <input name=”lastName” type=”text” required=”required” id=”LastName”>
    </p>
    <p>
    <label for=”email”>Email:</label>
    <input name=”email” type=”email” required=”required” id=”email”>
    </p>
    <p>
    <label for=”comment”>Comment:</label>
    <textarea name=”comment” required id=”comment”></textarea>
    </p>
    <p>
    <input name=”submit” type=”submit” id=”submit” value=”Submit”>
    </p>
    <input type=”hidden” name=”elqFormName” value=”formContactWordpress”>
    <input type=”hidden” name=”elqSiteID” value=”XYZ”>
    </form>

    #319695

    Hmmm… I have tried to add/edit the form code line by line and it seems as if it is the textarea field that causes the whole codeblock to go crazy:

    <p>
    <label for=”comment”>Comment:</label>
    <textarea name=”comment” required id=”comment”></textarea>
    </p>

    If I have a form without that field then the form still is editable in the code block. But then the question is, how do I add a text area field to my forms?

    #321363

    Hey!

    Forms within the Code block are definitely breaking things though there is no immediate fix I can think of. Kriesi will need to take a look at escaping form fields within the code block

    Regards,
    Devin

    #321407
    #324175
    This reply has been marked as private.
    #324227

    Hi!

    Yes, Kriesi is the founder of Kriesi.at – http://kriesi.at/about
    He is currently working on the version 3 of Enfold which is going to be a massive one with many new features. That is why it may take more time than usual for him to respond.

    Cheers!
    Yigit

    #329949

    I’m having the same problem. Forms pasted into the Code Block break things.

    Is there any workaround? How do I include my custom form code on the page?

    #330410

    Hey!

    You can use the following plugin https://wordpress.org/plugins/enhanced-text-widget/ to add custom html forms. Create a dynamic widget area, add the widget and simply add a Widget Area to the page where you want to display the form.

    Best regards,
    Arvish

    #331509

    Works like a charm!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Code block and form weirdness’ is closed to new replies.