<?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: Placeholders issue</title>
		<link>https://legacy.forums.gravityhelp.com/topic/placeholders-issue</link>
		<description>Gravity Support Forums Topic: Placeholders issue</description>
		<language>en-US</language>
		<pubDate>Fri, 03 Apr 2026 18:52:05 +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/placeholders-issue" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Placeholders issue"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/placeholders-issue#post-72589</link>
			<pubDate>Sat, 25 Aug 2012 10:21:33 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">72589@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If the jQuery is working on page 1 of the form but not subsequent pages, chances are you need to add the script to subsequent pages yourself.  Please see this &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_page_loaded&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_page_loaded&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cmccrone on "Placeholders issue"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/placeholders-issue#post-72518</link>
			<pubDate>Fri, 24 Aug 2012 15:06:27 +0000</pubDate>
			<dc:creator>cmccrone</dc:creator>
			<guid isPermaLink="false">72518@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@Chris I doubt the guy is going to respond any time soon. Whats is the most simple way to do this? I have some long application forms and they look AMAZING with placeholders vs titles above the input.&#60;/p&#62;
&#60;p&#62;I don't know where to begin.&#60;/p&#62;
&#60;p&#62;Thanks Chris
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cmccrone on "Placeholders issue"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/placeholders-issue#post-72503</link>
			<pubDate>Fri, 24 Aug 2012 12:04:16 +0000</pubDate>
			<dc:creator>cmccrone</dc:creator>
			<guid isPermaLink="false">72503@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Will do :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Placeholders issue"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/placeholders-issue#post-72464</link>
			<pubDate>Fri, 24 Aug 2012 07:51:12 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">72464@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That placeholder plugin was not created by Gravity Forms and I'm unfamiliar with it.  Please contact that plugin author for their support. &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wordpress.org/support/plugin/gravity-forms-auto-placeholders&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/support/plugin/gravity-forms-auto-placeholders&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;We'll leave this ticket open in case you need assistance with Gravity Forms and not this 3rd party plugin.  Thanks.&#60;/p&#62;
&#60;p&#62;UPDATE: I see you started a topic there already.  Please let us know what you find out.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cmccrone on "Placeholders issue"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/placeholders-issue#post-72396</link>
			<pubDate>Thu, 23 Aug 2012 20:51:36 +0000</pubDate>
			<dc:creator>cmccrone</dc:creator>
			<guid isPermaLink="false">72396@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Im using the placeholders plugin listed below and I have found two problems.&#60;/p&#62;
&#60;p&#62;1 ) It erases/hides the text next to the radio, checkboxes etc&#60;br /&#62;
2 ) When I created a paged form, it doesn't add the placeholders to the other pages (2nd, 3rd, etc). Just the first page of the form before you hit next.&#60;/p&#62;
&#60;p&#62;Anything wrong in this code that can fix those issues?&#60;/p&#62;
&#60;p&#62;PLUGIN: &#60;a href=&#34;http://wordpress.org/extend/plugins/gravity-forms-auto-placeholders/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/gravity-forms-auto-placeholders/&#60;/a&#62;&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function gfap_load_scripts() {
	wp_enqueue_script(&#38;#39;jquery&#38;#39;);
	wp_register_script(&#38;#39;modernizr&#38;#39;, &#38;#39;http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.0.6/modernizr.min.js&#38;#39;, array(&#38;#39;jquery&#38;#39;));
	wp_enqueue_script(&#38;#39;modernizr&#38;#39;);
}
add_action(&#38;#39;wp_enqueue_scripts&#38;#39;, &#38;#39;gfap_load_scripts&#38;#39;);

function register_gfap_settings() {
	$setting_vars = array(
		&#38;#39;gfap_class&#38;#39;,
		);
	foreach ( $setting_vars as $setting_var ){
		register_setting( &#38;#39;gfap_mystery&#38;#39;, $setting_var );
	}
}
add_action( &#38;#39;admin_init&#38;#39;, &#38;#39;register_gfap_settings&#38;#39; );

function gfap_menu() {
	add_options_page( &#38;#39;Gravity Forms Auto Placeholders Settings&#38;#39;, &#38;#39;Gravity Forms Auto Placeholders&#38;#39;, &#38;#39;manage_options&#38;#39;, &#38;#39;gfap_uid&#38;#39;, &#38;#39;gfap_options&#38;#39; );
}

function gfap_options() {
	if ( !current_user_can( &#38;#39;manage_options&#38;#39; ) )  {
		wp_die( __( &#38;#39;You do not have sufficient permissions to access this page.&#38;#39; ) );
	}
	echo &#38;#39;&#38;lt;div class=&#38;quot;wrap&#38;quot;&#38;gt;&#38;lt;h2&#38;gt;Gravity Forms Auto Placeholders Settings&#38;lt;/h2&#38;gt;&#38;lt;form method=&#38;quot;post&#38;quot; action=&#38;quot;options.php&#38;quot;&#38;gt;&#38;#39;;
	settings_fields(&#38;#39;gfap_mystery&#38;#39;);
?&#38;gt;

&#38;lt;style&#38;gt;.wrap form td span{color:#888;} .wrap legend{font-size:13px; font-weight:bold; margin-left:-5px;} .wrap fieldset{margin:10px 0px; padding:15px; padding-top:0px; border:1px solid #ccc;}&#38;lt;/style&#38;gt;
&#38;lt;fieldset&#38;gt;
	&#38;lt;legend&#38;gt;Convert labels to placeholders:&#38;lt;/legend&#38;gt;
	&#38;lt;table class=&#38;quot;form-table&#38;quot;&#38;gt;
		&#38;lt;tr&#38;gt;&#38;lt;td&#38;gt;&#38;lt;input type=&#38;quot;checkbox&#38;quot; name=&#38;quot;gfap_class&#38;quot; value=&#38;quot;1&#38;quot; &#38;lt;?php checked( &#38;#39;1&#38;#39;, get_option( &#38;#39;gfap_class&#38;#39; ) ); ?&#38;gt; /&#38;gt; Only on forms or form items with the class &#38;lt;b&#38;gt;&#38;lt;i&#38;gt;gfap_placeholder&#38;lt;/b&#38;gt;&#38;lt;/i&#38;gt; &#38;lt;span&#38;gt;- By default, leaving this unchecked will apply the effect to all Gravity Forms&#38;lt;/span&#38;gt;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;
	&#38;lt;/table&#38;gt;
&#38;lt;/fieldset&#38;gt;
&#38;lt;p class=&#38;quot;submit&#38;quot;&#38;gt;
&#38;lt;input type=&#38;quot;submit&#38;quot; class=&#38;quot;button-primary&#38;quot; value=&#38;quot;&#38;lt;?php _e(&#38;#39;Save Changes&#38;#39;) ?&#38;gt;&#38;quot; /&#38;gt;
&#38;lt;/p&#38;gt;

&#38;lt;?php
	echo &#38;#39;&#38;lt;/form&#38;gt;&#38;lt;/div&#38;gt;&#38;#39;;
}
add_action( &#38;#39;admin_menu&#38;#39;, &#38;#39;gfap_menu&#38;#39; );

function gfap_script() { ?&#38;gt;

&#38;lt;script&#38;gt;
// Start allowance of jQuery to $ shortcut
jQuery(document).ready(function($){

	// Convert label to placeholder
	&#38;lt;?php
		$gfap_class_pc = get_option(&#38;#39;gfap_class&#38;#39;);
		if ($gfap_class_pc) {
			$gfap_class = &#38;#39;gfap_placeholder&#38;#39;;
		}
		else {
			$gfap_class = &#38;#39;gform_wrapper&#38;#39;;
		}
	?&#38;gt;
	$.each($(&#38;#39;.&#38;lt;?php echo $gfap_class; ?&#38;gt; input, .&#38;lt;?php echo $gfap_class; ?&#38;gt; textarea&#38;#39;), function () {
		var gfapId = this.id;
		var gfapLabel = $(&#38;#39;label[for=&#38;#39; + gfapId + &#38;#39;]&#38;#39;);
		$(gfapLabel).hide();
		var gfapLabelValue = $(gfapLabel).text();
		$(this).attr(&#38;#39;placeholder&#38;#39;,gfapLabelValue);
	});

	// Use modernizr to add placeholders for IE
	if(!Modernizr.input.placeholder){$(&#38;quot;input,textarea&#38;quot;).each(function(){if($(this).val()==&#38;quot;&#38;quot; &#38;amp;&#38;amp; $(this).attr(&#38;quot;placeholder&#38;quot;)!=&#38;quot;&#38;quot;){$(this).val($(this).attr(&#38;quot;placeholder&#38;quot;));$(this).focus(function(){if($(this).val()==$(this).attr(&#38;quot;placeholder&#38;quot;)) $(this).val(&#38;quot;&#38;quot;);});$(this).blur(function(){if($(this).val()==&#38;quot;&#38;quot;) $(this).val($(this).attr(&#38;quot;placeholder&#38;quot;));});}});}

// Ends allowance of jQuery to $ shortcut
});
&#38;lt;/script&#38;gt;

&#38;lt;?php

}

add_action(&#38;#39;wp_head&#38;#39;, &#38;#39;gfap_script&#38;#39;);

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks to everyone that helps me out! Appreciate it!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
