<?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: Is there a Hook / Filter to manipulate form output?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/is-there-a-hook-filter-to-manipulate-form-output</link>
		<description>Gravity Support Forums Topic: Is there a Hook / Filter to manipulate form output?</description>
		<language>en-US</language>
		<pubDate>Wed, 22 Apr 2026 11:18:48 +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/is-there-a-hook-filter-to-manipulate-form-output" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "Is there a Hook / Filter to manipulate form output?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/is-there-a-hook-filter-to-manipulate-form-output#post-32956</link>
			<pubDate>Thu, 18 Aug 2011 17:21:10 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">32956@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi James,&#60;/p&#62;
&#60;p&#62;Take a look at this hook:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_content&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_content&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;It gives you the ability to complete rewrite the ouputted HTML for a field.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>James Morrison on "Is there a Hook / Filter to manipulate form output?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/is-there-a-hook-filter-to-manipulate-form-output#post-32876</link>
			<pubDate>Thu, 18 Aug 2011 09:29:48 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">32876@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;While styling my contact form page, I need to add a container element around the select (dropdown), or modify the &#60;em&#62;&#38;lt;div class=&#34;ginput_container&#34;&#38;gt;&#60;/em&#62; code where the element contained within is a dropdown.&#60;/p&#62;
&#60;p&#62;Is there a hook or filter that would help me to do this, specifically only for dropdown elements?&#60;/p&#62;
&#60;p&#62;i.e. The current output looks like:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;li class=&#38;quot;gfield gfield_contains_required&#38;quot; id=&#38;quot;field_1_4&#38;quot;&#38;gt;
    &#38;lt;label for=&#38;quot;input_1_4&#38;quot; class=&#38;quot;gfield_label&#38;quot;&#38;gt;Drop Down&#38;lt;span class=&#38;quot;gfield_required&#38;quot;&#38;gt;*&#38;lt;/span&#38;gt;&#38;lt;/label&#38;gt;
    &#38;lt;div class=&#38;quot;ginput_container&#38;quot;&#38;gt;
        &#38;lt;select tabindex=&#38;quot;13&#38;quot; class=&#38;quot;medium gfield_select&#38;quot; id=&#38;quot;input_1_4&#38;quot; name=&#38;quot;input_4&#38;quot;&#38;gt;
            &#38;lt;option value=&#38;quot;First Choice&#38;quot;&#38;gt;First Choice&#38;lt;/option&#38;gt;
            &#38;lt;option value=&#38;quot;Second Choice&#38;quot;&#38;gt;Second Choice&#38;lt;/option&#38;gt;
            &#38;lt;option value=&#38;quot;Third Choice&#38;quot;&#38;gt;Third Choice&#38;lt;/option&#38;gt;
        &#38;lt;/select&#38;gt;
    &#38;lt;/div&#38;gt;
&#38;lt;/li&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I need it to look like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;li class=&#38;quot;gfield gfield_contains_required&#38;quot; id=&#38;quot;field_1_4&#38;quot;&#38;gt;
    &#38;lt;label for=&#38;quot;input_1_4&#38;quot; class=&#38;quot;gfield_label&#38;quot;&#38;gt;Drop Down&#38;lt;span class=&#38;quot;gfield_required&#38;quot;&#38;gt;*&#38;lt;/span&#38;gt;&#38;lt;/label&#38;gt;
    &#38;lt;div class=&#38;quot;ginput_container select-wrapper&#38;quot;&#38;gt;
        &#38;lt;select tabindex=&#38;quot;13&#38;quot; class=&#38;quot;medium gfield_select&#38;quot; id=&#38;quot;input_1_4&#38;quot; name=&#38;quot;input_4&#38;quot;&#38;gt;
            &#38;lt;option value=&#38;quot;First Choice&#38;quot;&#38;gt;First Choice&#38;lt;/option&#38;gt;
            &#38;lt;option value=&#38;quot;Second Choice&#38;quot;&#38;gt;Second Choice&#38;lt;/option&#38;gt;
            &#38;lt;option value=&#38;quot;Third Choice&#38;quot;&#38;gt;Third Choice&#38;lt;/option&#38;gt;
        &#38;lt;/select&#38;gt;
    &#38;lt;/div&#38;gt;
&#38;lt;/li&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;or this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;li class=&#38;quot;gfield gfield_contains_required&#38;quot; id=&#38;quot;field_1_4&#38;quot;&#38;gt;
    &#38;lt;label for=&#38;quot;input_1_4&#38;quot; class=&#38;quot;gfield_label&#38;quot;&#38;gt;Drop Down&#38;lt;span class=&#38;quot;gfield_required&#38;quot;&#38;gt;*&#38;lt;/span&#38;gt;&#38;lt;/label&#38;gt;
    &#38;lt;div class=&#38;quot;ginput_container&#38;quot;&#38;gt;
     &#38;lt;div class=&#38;quot;select-wrapper&#38;quot;&#38;gt;
        &#38;lt;select tabindex=&#38;quot;13&#38;quot; class=&#38;quot;medium gfield_select&#38;quot; id=&#38;quot;input_1_4&#38;quot; name=&#38;quot;input_4&#38;quot;&#38;gt;
            &#38;lt;option value=&#38;quot;First Choice&#38;quot;&#38;gt;First Choice&#38;lt;/option&#38;gt;
            &#38;lt;option value=&#38;quot;Second Choice&#38;quot;&#38;gt;Second Choice&#38;lt;/option&#38;gt;
            &#38;lt;option value=&#38;quot;Third Choice&#38;quot;&#38;gt;Third Choice&#38;lt;/option&#38;gt;
        &#38;lt;/select&#38;gt;
    &#38;lt;/div&#38;gt;
    &#38;lt;/div&#38;gt;
&#38;lt;/li&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I know this can probably be done with jQuery if not by modifying the output with a hook / filter, but I don't know how to do this.&#60;/p&#62;
&#60;p&#62;Any help is greatly appreciated!&#60;/p&#62;
&#60;p&#62;James
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
