WordPress.org

Ready to get started?Download WordPress

Forums

Shortcodes Pro
Forms breaking code (5 posts)

  1. Adam Ramshaw
    Member
    Posted 2 years ago #

    Hi,

    I'm trying to use this tool to create a standard contact form that works with my CRM.

    It works fine up to this piece of code:
    <textarea id="inf_custom_Comments" class="infusion-field-input" name="inf_custom_Comments" rows="2" /></td>

    The on save it breaks the form code and splits the rest of the content into right hand part of the "Insert Custom Code dialog"

    Any ideas on what might be causing it.

    http://wordpress.org/extend/plugins/shortcodes-pro/

  2. Matt
    Member
    Plugin Author

    Posted 2 years ago #

    Hi aramshaw,

    It seems you have an unclosed td over there, could that be the issue?

  3. Adam Ramshaw
    Member
    Posted 2 years ago #

    Matt,

    After some more testing I notice that the form code is rendered correctly, i.e. what ever is messing up the admin page is resolved in the live site.

    I don't think it's a missing td -- here is the full code:

    <form accept-charset="UTF-8" action="https://genroe.infusionsoft.com/app/form/process/5765a8d2ad3c574a6c7f8bd374b059d5" class="infusion-form" method="POST">
    	<input name="inf_form_xid" type="hidden" value="5765a8d2ad3c574a6c7f8bd374b059d5" />
    	<input name="inf_form_name" type="hidden" value="Contact Us - In-page use" />
    	<input name="infusionsoft_version" type="hidden" value="1.26.4.29" />
    	<table class="Request_form_table">
    		<tr>
    			<td style="width: 80px;">First Name*</td>
    			<td style="width: 200px;">
    			<input id="inf_field_FirstName" class="infusion-field-input" name="inf_field_FirstName" type="text" /></td>
    			<td style="width: 80px;">Last Name*</td>
    			<td style="width: 200px;">
    			<input id="inf_field_LastName" class="infusion-field-input" name="inf_field_LastName" type="text" /></td>
    		</tr>
    		<tr>
    			<td>Job Title</td>
    			<td>
    			<input id="inf_field_JobTitle" class="infusion-field-input" name="inf_field_JobTitle" type="text" /></td>
    			<td>Company</td>
    			<td>
    			<input id="inf_field_Company" class="infusion-field-input" name="inf_field_Company" type="text" /></td>
    		</tr>
    		<tr>
    			<td>Email*</td>
    			<td>
    			<input id="inf_field_Email" class="infusion-field-input" name="inf_field_Email" type="text" /></td>
    			<td>Phone*</td>
    			<td>
    			<input id="inf_field_Email" class="infusion-field-input" name="inf_field_Phone1" type="text" /></td>
    		</tr>
    		<tr>
    			<td>Subject</td>
    			<td>
    			<textarea id="inf_custom_Comments" class="infusion-field-input" name="inf_custom_Comments" rows="2">Please contact me about...</textarea></td>
    			<td></td>
    			<td>
    			<input class="FormSubmitButtom" name="submit" type="submit" value="Send Request" />
    			See our
    			<a href="http://www.genroe.com/static/privacy" title="Privacy Policy">
    			Privacy Policy</a></td>
    		</tr>
    	</table>
    </form>

    It breaks in the admin section at:
    </textarea>

    I think it's probably because I'm nesting my </textarea> inside yours:

    <textarea name="insert-html" id="insert-html" cols="" rows="8" style="width:97%">

    Fix ideas?

    Thanks.

  4. Adam Ramshaw
    Member
    Posted 2 years ago #

    Matt,

    Actually some more testing later -- the form is not working in the live site. And I think this issue is very likely to be the </textarea> tag.

    Adam

  5. seanster
    Member
    Posted 1 year ago #

    Yes, the admin area where we post HTML is in a </textarea> so he will need to tag it with an <div id=xx></textarea> before his real one to catch the right one.??

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.