<?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: Bug rendering a form inside an admin custom page</title>
		<link>https://legacy.forums.gravityhelp.com/topic/bug-rendering-a-form-inside-an-admin-custom-page</link>
		<description>Gravity Support Forums Topic: Bug rendering a form inside an admin custom page</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:36:49 +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/bug-rendering-a-form-inside-an-admin-custom-page" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Bug rendering a form inside an admin custom page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/bug-rendering-a-form-inside-an-admin-custom-page#post-99591</link>
			<pubDate>Thu, 06 Dec 2012 09:09:31 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">99591@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Gravity Forms is not designed to be used in the admin area.  As such, we're not aware of what approach you would need to take to make it work there.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tuiuiu on "Bug rendering a form inside an admin custom page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/bug-rendering-a-form-inside-an-admin-custom-page#post-98419</link>
			<pubDate>Mon, 03 Dec 2012 15:44:17 +0000</pubDate>
			<dc:creator>tuiuiu</dc:creator>
			<guid isPermaLink="false">98419@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Not sure if this is a bug regarding the user registration add-on or gravity form itself, so i'm going to post it here.&#60;/p&#62;
&#60;p&#62;Basically, here's what i'm trying to do:&#60;/p&#62;
&#60;p&#62;1) I created an &#34;Update your profile&#34; kind of form, and linked it to the Update feature of User Registration add-on.&#60;/p&#62;
&#60;p&#62;2) It works perfectly on the front-end, but what i need is to put it inside an admin page.&#60;/p&#62;
&#60;p&#62;3) Here's my code:&#60;br /&#62;
add_action('admin_menu',function () {&#60;br /&#62;
   add_menu_page('Seu perfil', 'Seu perfil', 'read', 'atualize_perfil', function() {&#60;br /&#62;
      gravity_form(3, true);&#60;br /&#62;
   }, 'div');&#60;br /&#62;
});&#60;/p&#62;
&#60;p&#62;4) Here is how the form is rendered:&#60;br /&#62;
&#60;a href=&#34;http://i.imgur.com/fksPy.png&#34; rel=&#34;nofollow&#34;&#62;http://i.imgur.com/fksPy.png&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I tried checking the plugin code and i think it renders different according to the constant &#34;IS_ADMIN&#34; which is defined TRUE everytime the user enters the wp-admin, if i'm not mistaken.&#60;/p&#62;
&#60;p&#62;I think the fix would be something like... (but just a wild guess, i probably might be completely wrong) Changing the use of the constant for a private variable inside the rendering form class which would catch a value from outside, something like &#34;render_for_admin&#34;, which then would catch a value from the function &#34;gravity_form()&#34; which would allow the programmer to pass a flag for it would be rendered for admin or not... and of course it would have a default value, which would catch it from the IS_ADMIN constant itself. &#60;/p&#62;
&#60;p&#62;And yes, i've seen &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/forms-in-admin-pages&#34; rel=&#34;nofollow&#34;&#62;this topic here&#60;/a&#62; which its OP seems to be having the same problem as mine... But no real conclusion was given to the topic so i decided to ask as well, specially because other people may have the same trouble.&#60;/p&#62;
&#60;p&#62;So that's pretty much all of it. Thanks in advance =)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
