<?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: Firefox and isSelected issue</title>
		<link>https://legacy.forums.gravityhelp.com/topic/firefox-and-isselected-issue</link>
		<description>Gravity Support Forums Topic: Firefox and isSelected issue</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 12:49:56 +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/firefox-and-isselected-issue" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Firefox and isSelected issue"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/firefox-and-isselected-issue#post-112361</link>
			<pubDate>Wed, 02 Jan 2013 08:05:20 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">112361@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for posting your solution.  It appears that this is Firefox behaviour and is not new, as you mentioned.  This is a good work around for now.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>brasofilo on "Firefox and isSelected issue"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/firefox-and-isselected-issue#post-100383</link>
			<pubDate>Sat, 08 Dec 2012 19:45:13 +0000</pubDate>
			<dc:creator>brasofilo</dc:creator>
			<guid isPermaLink="false">100383@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Trying to make a gform_pre_render manipulate a dropdown field and mark one as selected, it was not working... Until I swapped to Chrome and it was ok.&#60;/p&#62;
&#60;p&#62;Seems that this FF behavior is not new. It displays the last selected field after refreshing.&#60;br /&#62;
&#60;a href=&#34;http://stackoverflow.com/q/4831848/1287812&#34; rel=&#34;nofollow&#34;&#62;http://stackoverflow.com/q/4831848/1287812&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I'm solving like this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter( &#38;#39;wp_head&#38;#39;, &#38;#39;gf_is_selected_firefox&#38;#39; );

function gf_is_selected_firefox()
{
	if( !preg_match( &#38;#39;/Firefox/i&#38;#39;, $_SERVER[&#38;#39;HTTP_USER_AGENT&#38;#39;] ) )
		return;
	?&#38;gt;
	&#38;lt;script&#38;gt;
		window.onload = function() { document.forms[&#38;#39;gform_5&#38;#39;].reset(); };
	&#38;lt;/script&#38;gt;
	&#38;lt;?php
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;PS.: here, no detection is being made to only print this in the correct page where the form is being displayed.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
