<?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: Custom Form Field as HTML Field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/custom-form-field-as-html-field</link>
		<description>Gravity Support Forums Topic: Custom Form Field as HTML Field</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 03:39:28 +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/custom-form-field-as-html-field" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Custom Form Field as HTML Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-form-field-as-html-field#post-181952</link>
			<pubDate>Sat, 23 Mar 2013 13:14:43 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">181952@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There are a couple things you need to do:&#60;/p&#62;
&#60;p&#62;1) You will need to change his fieldSettings[] array (from your gform_editor_js hook) to match the one used by an HTML field. You can see that in the form.js file (towards the end of the file)&#60;/p&#62;
&#60;p&#62;2) You will need to do is change the contents of your gform_field_input hook so that it doesn't render an input field, but renders your HTML content instead. If you need to get rid of the field label when rendering the HTML content, you will need to use the gform_field_content hook instead of gform_field_input.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kristopherdesign on "Custom Form Field as HTML Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-form-field-as-html-field#post-179842</link>
			<pubDate>Thu, 21 Mar 2013 16:22:52 +0000</pubDate>
			<dc:creator>kristopherdesign</dc:creator>
			<guid isPermaLink="false">179842@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here is the code as it currently stands (all in my functions.php file):&#60;br /&#62;
&#60;a href=&#34;http://pastebin.com/kpgZmEKx&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/kpgZmEKx&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Through the gform_pre_render filter I have added I want to change the &#34;content&#34; of the field that I have created. I am aiming to treat this new form field as an HTML field so that GF will output the necessary code EXACTLY as I intend it (ie, as basic HTML field is handled by GF). I believe that this is the only approach available to me. Again, the problem I'm having is getting my new form field to behave like an HTML form field. I believe that the attribute I am aiming to add to my field is:&#60;br /&#62;
&#34;displayOnly&#34;:true&#60;br /&#62;
I don't know how to do this. Nor am I certain that this is what needs to be done.&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Custom Form Field as HTML Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-form-field-as-html-field#post-178723</link>
			<pubDate>Wed, 20 Mar 2013 23:03:05 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">178723@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for the screenshot.  I'll ask the development team for their input on this one.  In the meantime, can you please post the code you are currently using to create this field, at pastebin.com or pastie.org?  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kristopherdesign on "Custom Form Field as HTML Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-form-field-as-html-field#post-176862</link>
			<pubDate>Tue, 19 Mar 2013 11:24:27 +0000</pubDate>
			<dc:creator>kristopherdesign</dc:creator>
			<guid isPermaLink="false">176862@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Essentially, I have added my own Form Field (&#34;Audio Recorder&#34;) through the gform_add_field_buttons filter. I understand how to make this field behave like a standard form field (ie, a text input field), but I do not understand how to make it behave like an HTML field. For my use, it appears essential that this custom field behave like an HTML field so that I can automatically swap in the necessary Audio Recorder HTML when the form is rendered. Here is a screen shot of the GF Admin: &#60;a href=&#34;http://www.kristopherdesign.com/GF-Custom-Field2.png&#34; rel=&#34;nofollow&#34;&#62;http://www.kristopherdesign.com/GF-Custom-Field2.png&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Custom Form Field as HTML Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-form-field-as-html-field#post-176244</link>
			<pubDate>Tue, 19 Mar 2013 00:37:07 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">176244@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm afraid it does not.  I'll ask some of the other support staff.  But if you could provide screenshots or examples of what you're trying to do, that may help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kristopherdesign on "Custom Form Field as HTML Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-form-field-as-html-field#post-175715</link>
			<pubDate>Mon, 18 Mar 2013 15:43:50 +0000</pubDate>
			<dc:creator>kristopherdesign</dc:creator>
			<guid isPermaLink="false">175715@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No, I didn't touch the gform_field_advanced_settings filter because I wasn't concerned with adding any settings. My goal was to simply create a one-button solution that would allow me to swap the appropriate code in through the back end (via the gform_pre_render filter). I realize that I could do this using a css class assigned to a simple HTML field, but entering (and remembering) a css class is something I would like to avoid. Does that make sense?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Custom Form Field as HTML Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-form-field-as-html-field#post-174545</link>
			<pubDate>Sun, 17 Mar 2013 19:17:54 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">174545@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What code are you using currently to create this field?  Are you using the gform_field_advanced_settings filter: &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_advanced_settings&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_advanced_settings&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kristopherdesign on "Custom Form Field as HTML Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-form-field-as-html-field#post-172574</link>
			<pubDate>Fri, 15 Mar 2013 17:04:01 +0000</pubDate>
			<dc:creator>kristopherdesign</dc:creator>
			<guid isPermaLink="false">172574@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;My client requires multi-page forms with occasional instances of an audio recorder (javascript/Flash: &#60;a href=&#34;https://github.com/jwagener/recorder.js)&#34; rel=&#34;nofollow&#34;&#62;https://github.com/jwagener/recorder.js)&#60;/a&#62;. While I realize that I can create an HTML field to manually embed the necessary code, my goal is to create a Custom Form Field which would automate the process. In other words, create a button in the &#34;Advanced Fields&#34; section of the GF Admin labeled &#34;Audio Recorder.&#34; When pressed, a new field would be created with the capabilities of an HTML field, and when this field is rendered on the front end a script would run to replace the content of this field with the necessary code to execute the audio recorder.&#60;br /&#62;
Does this logic make sense? Am I taking the correct approach? I have followed the guidance offered here:&#60;br /&#62;
&#60;a href=&#34;http://wpsmith.net/2011/plugins/how-to-create-a-custom-form-field-in-gravity-forms-with-a-terms-of-service-form-field-example/&#34; rel=&#34;nofollow&#34;&#62;http://wpsmith.net/2011/plugins/how-to-create-a-custom-form-field-in-gravity-forms-with-a-terms-of-service-form-field-example/&#60;/a&#62;&#60;br /&#62;
to create the Custom Form Field, but I cannot get this new field to behave like an HTML field. Because it does not behave like an HTML field, GF is not handling the automated content creation correctly. In addition, I am also struggling to predefine the field's label as is done in a standard HTML field. &#60;/p&#62;
&#60;p&#62;Any help you can offer would be greatly appreciated. Thanks.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
