<?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: Read Only</title>
		<link>https://legacy.forums.gravityhelp.com/topic/read-only</link>
		<description>Gravity Support Forums Topic: Read Only</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 12:06:43 +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/read-only" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Read Only"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/read-only#post-145165</link>
			<pubDate>Sat, 09 Feb 2013 12:19:20 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">145165@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Duplicate only this line in your functions.php, once for each form.  Change the form ID in the filter:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// this will apply to form 1
add_filter(&#38;#39;gform_pre_render_1&#38;#39;, &#38;#39;add_readonly_script&#38;#39;);

// this will apply to form 6
add_filter(&#38;#39;gform_pre_render_6&#38;#39;, &#38;#39;add_readonly_script&#38;#39;);

// this will apply to all forms
add_filter(&#38;#39;gform_pre_render&#38;#39;, &#38;#39;add_readonly_script&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;No need to duplicate the function, just the &#34;add_filter&#34; line.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Aejandro on "Read Only"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/read-only#post-145135</link>
			<pubDate>Sat, 09 Feb 2013 10:51:49 +0000</pubDate>
			<dc:creator>Aejandro</dc:creator>
			<guid isPermaLink="false">145135@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It is working now!!&#60;/p&#62;
&#60;p&#62;Please, last question: what if more than one form is needed to be filtered?&#60;/p&#62;
&#60;p&#62;This code is only for one form:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// update &#38;#39;1&#38;#39; to the ID of your form
add_filter(&#38;#39;gform_pre_render_1&#38;#39;, &#38;#39;add_readonly_script&#38;#39;);
function add_readonly_script($form){
    ?&#38;gt;

    &#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
        jQuery(document).ready(function(){
            jQuery(&#38;quot;li.gf_readonly textarea&#38;quot;).attr(&#38;quot;readonly&#38;quot;,&#38;quot;readonly&#38;quot;);
        });
    &#38;lt;/script&#38;gt;

    &#38;lt;?php
    return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Is it possible to filter more forms?&#60;/p&#62;
&#60;p&#62;Thank you
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Read Only"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/read-only#post-144963</link>
			<pubDate>Sat, 09 Feb 2013 00:37:29 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">144963@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Looking at your form, your only textarea is field 24 (input_24) and that does not have a class of gf_readonly.  However, your script is only targetting textareas with a class of gf_readonly.  Field 33 is just 'text' not 'textarea'.  If you change the one line in your script to this, it will work:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;jQuery(&#38;quot;li.gf_readonly input&#38;quot;).attr(&#38;quot;readonly&#38;quot;,&#38;quot;readonly&#38;quot;);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Aejandro on "Read Only"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/read-only#post-144917</link>
			<pubDate>Fri, 08 Feb 2013 21:48:01 +0000</pubDate>
			<dc:creator>Aejandro</dc:creator>
			<guid isPermaLink="false">144917@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry, because it was not ready, I did not put the field.&#60;/p&#62;
&#60;p&#62;Now it is there. Is the first field named TOUR (id: 33)&#60;/p&#62;
&#60;p&#62;Thank you
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Read Only"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/read-only#post-144792</link>
			<pubDate>Fri, 08 Feb 2013 15:39:53 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">144792@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I see the script in the source:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[js]
    &#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
        jQuery(document).ready(function(){
            jQuery(&#38;quot;li.gf_readonly textarea&#38;quot;).attr(&#38;quot;readonly&#38;quot;,&#38;quot;readonly&#38;quot;);
        });
    &#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But I don't see the 'gf_readonly' class applied to any form fields.  Can you view the source of that page and let me know which field has the gf_readonly class?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Aejandro on "Read Only"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/read-only#post-144377</link>
			<pubDate>Thu, 07 Feb 2013 19:30:48 +0000</pubDate>
			<dc:creator>Aejandro</dc:creator>
			<guid isPermaLink="false">144377@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello:&#60;/p&#62;
&#60;p&#62;I am trying to make a field &#34;read only&#34;. I am following these documentation instructions: &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/terms-and-conditions-text-record-in-form-entries-database#post-25225&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/terms-and-conditions-text-record-in-form-entries-database#post-25225&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;... but it does not work for me.&#60;/p&#62;
&#60;p&#62;My theme features a custom_functions.php file, so I am adding the given code there. (In fact, when I add the code to the functions.php file the theme get broken.)&#60;/p&#62;
&#60;p&#62;I input the form id properly as indicated.&#60;/p&#62;
&#60;p&#62;I have also added the gf_readonly to the field's class name.&#60;/p&#62;
&#60;p&#62;Is anything I have to double check?&#60;/p&#62;
&#60;p&#62;Here you have a link to my site: &#60;a href=&#34;http://goo.gl/m68vW&#34; rel=&#34;nofollow&#34;&#62;http://goo.gl/m68vW&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thank you!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
