<?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: delete/edit buttons showing when loading form with ajax</title>
		<link>https://legacy.forums.gravityhelp.com/topic/deleteedit-buttons-showing-when-loading-form-with-ajax</link>
		<description>Gravity Support Forums Topic: delete/edit buttons showing when loading form with ajax</description>
		<language>en-US</language>
		<pubDate>Mon, 06 Apr 2026 08:31:03 +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/deleteedit-buttons-showing-when-loading-form-with-ajax" rel="self" type="application/rss+xml" />

		<item>
			<title>designkitty on "delete/edit buttons showing when loading form with ajax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deleteedit-buttons-showing-when-loading-form-with-ajax#post-28210</link>
			<pubDate>Mon, 20 Jun 2011 19:28:42 +0000</pubDate>
			<dc:creator>designkitty</dc:creator>
			<guid isPermaLink="false">28210@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Well no, that still didn't work. Being in 'admin mode' completely changes the form functionality and now its not uploading. :/ I took off the disabled attributes from the inputs, but now when I use the form it puts it in a 'preview' mode or something, instead of actually processing it.&#60;/p&#62;
&#60;p&#62;I'm out of ideas to get this to work.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>designkitty on "delete/edit buttons showing when loading form with ajax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deleteedit-buttons-showing-when-loading-form-with-ajax#post-28209</link>
			<pubDate>Mon, 20 Jun 2011 19:11:41 +0000</pubDate>
			<dc:creator>designkitty</dc:creator>
			<guid isPermaLink="false">28209@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I can't, its for a client, and its not ready for public consumption &#38;gt;&#38;lt;&#60;/p&#62;
&#60;p&#62;I'm building a web app, and I need to be able to reload the gravity_form without reloading the page. The only way to get the gravityform back after 1 submission is either AJAX or a page-refresh. And since a page-refresh is out of the question, I have to use AJAX.&#60;/p&#62;
&#60;p&#62;Unfortunately WP makes you use admin-ajax.php to process AJAX requests with their API, which is why I'm getting the delete/edit buttons. &#60;/p&#62;
&#60;p&#62;I've managed to hack the delete/edit buttons out but its definitely not foolproof/perfect.&#60;br /&#62;
this is my JS function I use to (re)load the gravityform:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function LoadPhotoForm() {
	$.get(ajaxurl,{&#38;#39;action&#38;#39;:&#38;#39;load_photo_form&#38;#39;},function(data){
		$(&#38;quot;#upload_form&#38;quot;).hide().html(data);
		$(&#38;quot;#upload_form .field_delete_icon&#38;quot;).remove();
		$(&#38;quot;#upload_form .field_edit_icon&#38;quot;).remove();
		$(&#38;quot;#upload_form&#38;quot;).fadeIn();
	});
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "delete/edit buttons showing when loading form with ajax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deleteedit-buttons-showing-when-loading-form-with-ajax#post-28208</link>
			<pubDate>Mon, 20 Jun 2011 19:00:53 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">28208@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm not sure I follow what you are trying to accomplish.  Why are you displaying the form with AJAX? Can you link to a page that shows us what you are trying to do visually so we know what you are trying to accomplish?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>designkitty on "delete/edit buttons showing when loading form with ajax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deleteedit-buttons-showing-when-loading-form-with-ajax#post-28205</link>
			<pubDate>Mon, 20 Jun 2011 18:36:30 +0000</pubDate>
			<dc:creator>designkitty</dc:creator>
			<guid isPermaLink="false">28205@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Well everywhere I've looked suggested that I must use admin-ajax.php for processing ajax requests with wordpress. So that's what I'm using. The reason I'm calling the form with AJAX is because there is currently no other way to retrieve the form without reloading the page if the form has been used. Using an AJAX form overwrites the form with a response message, and the only way to get it back is a hard-page refresh or AJAX.&#60;/p&#62;
&#60;p&#62;Is there a way to add/apply a filter to the gravity_form() function, perhaps letting me strip out the &#60;code&#62;&#38;lt;a&#38;gt;&#60;/code&#62; links with preg_replace before it gets printed out? I've tried to assign it a variable and process it through preg_replace but just using &#60;code&#62;gravity_form(...)&#60;/code&#62; causes it to print the form instead of just assign it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "delete/edit buttons showing when loading form with ajax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deleteedit-buttons-showing-when-loading-form-with-ajax#post-28180</link>
			<pubDate>Mon, 20 Jun 2011 13:21:05 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">28180@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The problem is because the ajaxurl is the admin ajax Gravity Forms thinks it's being called from the admin.  That is the problem.  I'm not sure of a work around to this other than not using AJAX to display the form the way you are doing it.  Either don't use AJAX or find an alternative.  But because you are using the admin ajaxurl, Gravity Forms thinks it's being called from the admin and therefore is displaying the admin interface.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>designkitty on "delete/edit buttons showing when loading form with ajax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deleteedit-buttons-showing-when-loading-form-with-ajax#post-28102</link>
			<pubDate>Sat, 18 Jun 2011 02:22:22 +0000</pubDate>
			<dc:creator>designkitty</dc:creator>
			<guid isPermaLink="false">28102@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;my php file included in my theme:&#60;br /&#62;
&#60;a href=&#34;http://www.chopapp.com/#zg0qjs5h&#34; rel=&#34;nofollow&#34;&#62;http://www.chopapp.com/#zg0qjs5h&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;my javascript to pull the form after page has loaded:&#60;br /&#62;
&#60;a href=&#34;http://www.chopapp.com/#4w3etqxz&#34; rel=&#34;nofollow&#34;&#62;http://www.chopapp.com/#4w3etqxz&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;ajaxurl = wp-admin/admin-ajax.php ( as per suggested in every WP/AJAX resource I could find )&#60;/p&#62;
&#60;p&#62;Hope that helps - is there any other info I can provide to help?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "delete/edit buttons showing when loading form with ajax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deleteedit-buttons-showing-when-loading-form-with-ajax#post-28098</link>
			<pubDate>Sat, 18 Jun 2011 00:23:41 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">28098@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This shouldn't be happening.  What you are seeing is the admin interface.  How are you displaying the form?  Are you using a function call directly in your theme template? What function call are you using? Provide as much details as you can for your implementation because something is wrong with how you have it implemented, the admin interface shouldn't be displaying on the frontend.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>designkitty on "delete/edit buttons showing when loading form with ajax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deleteedit-buttons-showing-when-loading-form-with-ajax#post-28094</link>
			<pubDate>Fri, 17 Jun 2011 22:05:01 +0000</pubDate>
			<dc:creator>designkitty</dc:creator>
			<guid isPermaLink="false">28094@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Kind of thinking this is relevant after looking at gravityform_display code ( where i found the delete link )&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.garyc40.com/2010/03/5-tips-for-using-ajax-in-wordpress/#comment-488&#34; rel=&#34;nofollow&#34;&#62;http://www.garyc40.com/2010/03/5-tips-for-using-ajax-in-wordpress/#comment-488&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;there is a lot of IS_ADMIN which i think is what's causing my problem...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>designkitty on "delete/edit buttons showing when loading form with ajax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deleteedit-buttons-showing-when-loading-form-with-ajax#post-28093</link>
			<pubDate>Fri, 17 Jun 2011 21:11:43 +0000</pubDate>
			<dc:creator>designkitty</dc:creator>
			<guid isPermaLink="false">28093@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am loading a gravityform with ajax after a pageload.&#60;/p&#62;
&#60;p&#62;After doing so my form appears, but I have these &#34;delete&#34; and &#34;edit&#34; links for each form field.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;a onclick=&#38;quot;StartDeleteField(this);&#38;quot; href=&#38;quot;javascript:void(0);&#38;quot; title=&#38;quot;click to delete this field&#38;quot; id=&#38;quot;gfield_delete_1&#38;quot; class=&#38;quot;field_delete_icon&#38;quot;&#38;gt;Delete&#38;lt;/a&#38;gt;&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#38;lt;a title=&#38;quot;click to edit this field&#38;quot; href=&#38;quot;javascript:void(0);&#38;quot; class=&#38;quot;field_edit_icon edit_icon_collapsed&#38;quot;&#38;gt;Edit&#38;lt;/a&#38;gt;&#60;/code&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
