<?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: How do I remove the label on a custom element?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-remove-the-label-on-a-custom-element</link>
		<description>Gravity Support Forums Topic: How do I remove the label on a custom element?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 07:12:23 +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/how-do-i-remove-the-label-on-a-custom-element" rel="self" type="application/rss+xml" />

		<item>
			<title>Rob Harrell on "How do I remove the label on a custom element?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-remove-the-label-on-a-custom-element#post-63091</link>
			<pubDate>Wed, 20 Jun 2012 15:11:48 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">63091@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Nice, thanks for posting!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jackdpeterson on "How do I remove the label on a custom element?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-remove-the-label-on-a-custom-element#post-63083</link>
			<pubDate>Wed, 20 Jun 2012 12:39:38 +0000</pubDate>
			<dc:creator>jackdpeterson</dc:creator>
			<guid isPermaLink="false">63083@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Solution:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;public static function gravityCreateInputElement ($input, $field, $value,
            $lead_id, $form_id)
    {
        if ($field[&#38;quot;type&#38;quot;] == &#38;quot;myType&#38;quot;) {
            if (IS_ADMIN) {

                $content = &#38;quot;&#38;lt;h3 class=&#38;#39;subsection_title&#38;#39;&#38;gt;Custom Widget&#38;lt;/h3&#38;gt;&#38;quot;;
            } else {
                $field[&#38;#39;cssClass&#38;#39;] = &#38;quot;hidden&#38;quot;;
                $formId = $form_id;
                $fieldId = $field[&#38;#39;id&#38;#39;];
                $content = &#38;quot;&#38;lt;style type=&#38;#39;text/css&#38;#39;&#38;gt; #field_&#38;quot; . $formId . &#38;quot;_&#38;quot; .
                         $fieldId .
                         &#38;quot; { display: none;}&#38;lt;/style&#38;gt;&#38;lt;input type=&#38;#39;hidden&#38;#39; name=&#38;#39;myType&#38;#39; value=&#38;#39;&#38;#39; /&#38;gt;&#38;quot;;
            }

            return $content;
        }
    }&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>jackdpeterson on "How do I remove the label on a custom element?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-remove-the-label-on-a-custom-element#post-63077</link>
			<pubDate>Wed, 20 Jun 2012 12:10:26 +0000</pubDate>
			<dc:creator>jackdpeterson</dc:creator>
			<guid isPermaLink="false">63077@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Oh, It's currently just running on a localhost wordpress install. That's simple enough methodology. Just out of curiosity -- no programmatic way to enforce a null label though/ disable label generation?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "How do I remove the label on a custom element?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-remove-the-label-on-a-custom-element#post-63049</link>
			<pubDate>Wed, 20 Jun 2012 07:45:06 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">63049@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can hide that specific label via the field ID with CSS. Do you have a link to your form?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jackdpeterson on "How do I remove the label on a custom element?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-remove-the-label-on-a-custom-element#post-63030</link>
			<pubDate>Tue, 19 Jun 2012 19:37:07 +0000</pubDate>
			<dc:creator>jackdpeterson</dc:creator>
			<guid isPermaLink="false">63030@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm attempting to create a custom type (input type=&#34;hidden&#34;) field that has some dynamically generated values. &#60;/p&#62;
&#60;p&#62;Using add_action(&#34;gform_field_input&#34; ...)  I am able to see the generated input; however, it always has a label attached. Is there a simple way to remove the label when !IS_ADMIN for just this one field?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
