Tagged: Code block, form
-
AuthorPosts
-
September 16, 2014 at 10:04 am #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″ 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>September 16, 2014 at 10:17 am #319695Hmmm… 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?
September 18, 2014 at 6:22 pm #321363Hey!
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,
DevinSeptember 18, 2014 at 7:10 pm #321407For reference on the same issue: https://kriesi.at/support/topic/textarea-breaks-the-avia-layout-builder/#post-320308
September 24, 2014 at 11:43 am #324175This reply has been marked as private.September 24, 2014 at 1:29 pm #324227Hi!
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!
YigitOctober 3, 2014 at 11:32 pm #329949I’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?
October 5, 2014 at 9:30 am #330410Hey!
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,
ArvishOctober 7, 2014 at 11:58 am #331509Works like a charm!
-
AuthorPosts
- The topic ‘Code block and form weirdness’ is closed to new replies.