<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Unexpected Token ILLEGAL when adding Section or Page breaks in Edit Form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/unexpected-token-illegal-when-adding-section-or-page-breaks-in-edit-form</link>
		<description>Gravity Support Forums Topic: Unexpected Token ILLEGAL when adding Section or Page breaks in Edit Form</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 18:01:45 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/unexpected-token-illegal-when-adding-section-or-page-breaks-in-edit-form" rel="self" type="application/rss+xml" />

		<item>
			<title>Rob Harrell on "Unexpected Token ILLEGAL when adding Section or Page breaks in Edit Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unexpected-token-illegal-when-adding-section-or-page-breaks-in-edit-form#post-54485</link>
			<pubDate>Fri, 06 Apr 2012 16:07:37 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">54485@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for letting us know!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sc0ttkclark on "Unexpected Token ILLEGAL when adding Section or Page breaks in Edit Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unexpected-token-illegal-when-adding-section-or-page-breaks-in-edit-form#post-54323</link>
			<pubDate>Thu, 05 Apr 2012 00:42:09 +0000</pubDate>
			<dc:creator>sc0ttkclark</dc:creator>
			<guid isPermaLink="false">54323@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Nevermind, found the issue, and of course it was me. I was filtering on 'gform_field_content', which was being used to filter the output of fields being added into the form editor (weird, but ok), so it broke in two different ways.&#60;/p&#62;
&#60;p&#62;1. It was somehow adding linebreaks, so the JS was invalid.&#60;br /&#62;
2. It was setting autocomplete=&#34;off&#34; on all input fields (and removing autocomplete=&#34;on&#34;), but it was using double quotes where as the form editor JS is outputting single quote attributes, so the JS was invalid.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sc0ttkclark on "Unexpected Token ILLEGAL when adding Section or Page breaks in Edit Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unexpected-token-illegal-when-adding-section-or-page-breaks-in-edit-form#post-54322</link>
			<pubDate>Thu, 05 Apr 2012 00:29:03 +0000</pubDate>
			<dc:creator>sc0ttkclark</dc:creator>
			<guid isPermaLink="false">54322@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Tried again on the same site, same thing. Turned no conflict mode on and same thing again. Still digging.. Tried add and edit form, so definitely something fishy.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sc0ttkclark on "Unexpected Token ILLEGAL when adding Section or Page breaks in Edit Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unexpected-token-illegal-when-adding-section-or-page-breaks-in-edit-form#post-45804</link>
			<pubDate>Sun, 08 Jan 2012 15:28:56 +0000</pubDate>
			<dc:creator>sc0ttkclark</dc:creator>
			<guid isPermaLink="false">45804@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Having an issue adding section and page breaks to my forms on a client project. Upon clicking the button to add, I get a JS error:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;Uncaught SyntaxError: Unexpected token ILLEGAL&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;The AJAX returns this (multi-line) which leads me to believe this is where the issue is with the JS since there are line breaks in it (there are none of these line breaks in responses from adding other field types:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;EndAddField({&#38;quot;id&#38;quot;: 33, &#38;quot;label&#38;quot;: &#38;quot;Section Break&#38;quot;, &#38;quot;adminLabel&#38;quot;: &#38;quot;&#38;quot;, &#38;quot;type&#38;quot;: &#38;quot;section&#38;quot;, &#38;quot;isRequired&#38;quot;: false, &#38;quot;size&#38;quot;: &#38;quot;medium&#38;quot;, &#38;quot;errorMessage&#38;quot;: &#38;quot;&#38;quot;, &#38;quot;inputs&#38;quot;: null, &#38;quot;displayOnly&#38;quot;: true}, &#38;quot;&#38;lt;li id=&#38;#39;field_33&#38;#39; class=&#38;#39;selectable gfield  gsection&#38;#39; &#38;gt;&#38;lt;div class=&#38;#39;gfield_admin_icons&#38;#39;&#38;gt;
&#38;lt;div class=&#38;#39;gfield_admin_header_title&#38;#39;&#38;gt;Section Break : Field ID 33&#38;lt;/div&#38;gt;
&#38;lt;p&#38;gt;&#38;lt;a class=&#38;#39;field_delete_icon&#38;#39; id=&#38;#39;gfield_delete_33&#38;#39; title=&#38;#39;click to delete this field&#38;#39; href=&#38;#39;#&#38;#39; onclick=&#38;#39;StartDeleteField(this); return false;&#38;#39;&#38;gt;Delete&#38;lt;/a&#38;gt;&#38;lt;a class=&#38;#39;field_duplicate_icon&#38;#39; id=&#38;#39;gfield_duplicate_33&#38;#39; title=&#38;#39;click to duplicate this field&#38;#39; href=&#38;#39;#&#38;#39; onclick=&#38;#39;StartDuplicateField(this); return false;&#38;#39;&#38;gt;Duplicate&#38;lt;/a&#38;gt;&#38;lt;a class=&#38;#39;field_edit_icon edit_icon_collapsed&#38;#39; title=&#38;#39;click to edit this field&#38;#39;&#38;gt;Edit&#38;lt;/a&#38;gt;&#38;lt;/div&#38;gt;
&#38;lt;h2 class=&#38;#39;gsection_title&#38;#39;&#38;gt;Section Break&#38;lt;/h2&#38;gt;
&#38;lt;div class=&#38;#39;gsection_description&#38;#39;&#38;gt;&#38;lt;/div&#38;gt;
&#38;lt;/li&#38;gt;&#38;quot;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;As I tested further, I saw the same issue with adding HTML fields too. Any thoughts on a solution? Using Chrome + latest WP and GF
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
