<?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: Adding dropdown field to hidden fields in form administration</title>
		<link>https://legacy.forums.gravityhelp.com/topic/adding-dropdown-field-to-hidden-fields-in-form-administration</link>
		<description>Gravity Support Forums Topic: Adding dropdown field to hidden fields in form administration</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 07:11:20 +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/adding-dropdown-field-to-hidden-fields-in-form-administration" rel="self" type="application/rss+xml" />

		<item>
			<title>lewismedia on "Adding dropdown field to hidden fields in form administration"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-dropdown-field-to-hidden-fields-in-form-administration#post-76894</link>
			<pubDate>Sat, 22 Sep 2012 12:10:03 +0000</pubDate>
			<dc:creator>lewismedia</dc:creator>
			<guid isPermaLink="false">76894@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you. Exactly what I needed to know. Where is this in the documentation?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Adding dropdown field to hidden fields in form administration"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-dropdown-field-to-hidden-fields-in-form-administration#post-74674</link>
			<pubDate>Mon, 10 Sep 2012 12:18:38 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">74674@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You are almost there, but you have missed a step. You need to give a unique class to your setting and then configure which field types will be able to see it. You are using admin_label_setting, and that setting is not supported by the hidden field, so that is why it is not displayed for that field. You will want to do the following:&#60;br /&#62;
1- Change admin_label_setting with a unique class for your new field property (i.e. my_custom_setting).&#60;br /&#62;
2- Assign your class above to each field type that you would like this setting to apply to.&#60;br /&#62;
More specifically, if you would like this setting to be visible by hidden fields and text fields, add the following lines to your my_gform_editor_js()&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;fieldSettings[&#38;quot;hidden&#38;quot;] += &#38;quot;, .my_custom_setting&#38;quot;;
fieldSettings[&#38;quot;text&#38;quot;] += &#38;quot;, .my_custom_setting&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I hope this helps.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lewismedia on "Adding dropdown field to hidden fields in form administration"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-dropdown-field-to-hidden-fields-in-form-administration#post-74522</link>
			<pubDate>Sun, 09 Sep 2012 16:46:41 +0000</pubDate>
			<dc:creator>lewismedia</dc:creator>
			<guid isPermaLink="false">74522@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;In dire need here guys. I realize it's the weekend, but is anyone around? Should I just create a custom field type that acts the same way as a hidden field, and apply it that way instead? There must be a better way...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lewismedia on "Adding dropdown field to hidden fields in form administration"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-dropdown-field-to-hidden-fields-in-form-administration#post-74404</link>
			<pubDate>Fri, 07 Sep 2012 16:23:26 +0000</pubDate>
			<dc:creator>lewismedia</dc:creator>
			<guid isPermaLink="false">74404@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've successfully added a dropdown option in form administration directly under the field label using gform_field_standard_settings. This dropdown is showing for ALL fields EXCEPT for the hidden field. Is there a separate hook I need to use to add the dropdown to the hidden field type as well?&#60;/p&#62;
&#60;p&#62;Here's the code I'm using to add the dropdown. Any help would be greatly appreciated.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// ADD ADF FIELD IDENTIFIER TO ALL FIELDS

add_action(&#38;quot;gform_field_standard_settings&#38;quot;, &#38;quot;my_standard_settings&#38;quot;, 10, 2);

function my_standard_settings($position, $form_id){

// Create settings on position 25 (right after Field Label)

if($position == 25){
?&#38;gt;

&#38;lt;li class=&#38;quot;admin_label_setting field_setting&#38;quot; style=&#38;quot;display: list-item; &#38;quot;&#38;gt;
&#38;lt;label for=&#38;quot;adf_field&#38;quot;&#38;gt;ADF Field Type

&#38;lt;!-- Tooltip to help users understand what this field does --&#38;gt;
&#38;lt;a href=&#38;quot;javascript:void(0);&#38;quot; class=&#38;quot;tooltip tooltip_form_field_placeholder&#38;quot; tooltip=&#38;quot;&#38;lt;h6&#38;gt;ADF Field Type&#38;lt;/h6&#38;gt;To pass a form value as an ADF form field, please select an option from the list below.&#38;quot;&#38;gt;(?)&#38;lt;/a&#38;gt;

&#38;lt;/label&#38;gt;

&#38;lt;select id=&#38;quot;adf_field&#38;quot; name=&#38;quot;adf_field&#38;quot; onchange=&#38;quot;SetFieldProperty(&#38;#39;adf_field&#38;#39;, this.value);&#38;quot;&#38;gt;
  &#38;lt;option value=&#38;quot;0&#38;quot;&#38;gt;PLEASE SELECT&#38;lt;/option&#38;gt;
  &#38;lt;option value=&#38;quot;CustomerName&#38;quot;&#38;gt;CUSTOMER : Name&#38;lt;/option&#38;gt;
  &#38;lt;option value=&#38;quot;CustomerEmail&#38;quot;&#38;gt;CUSTOMER : Email&#38;lt;/option&#38;gt;
  &#38;lt;option value=&#38;quot;CustomerPhone&#38;quot;&#38;gt;CUSTOMER : Phone&#38;lt;/option&#38;gt;
  &#38;lt;option value=&#38;quot;CustomerComments&#38;quot;&#38;gt;CUSTOMER : Comments&#38;lt;/option&#38;gt;
  &#38;lt;option value=&#38;quot;VehicleYear&#38;quot;&#38;gt;VEHICLE : Year&#38;lt;/option&#38;gt;
  &#38;lt;option value=&#38;quot;VehicleMake&#38;quot;&#38;gt;VEHICLE : Make&#38;lt;/option&#38;gt;
  &#38;lt;option value=&#38;quot;VehicleModel&#38;quot;&#38;gt;VEHICLE : Model&#38;lt;/option&#38;gt;
  &#38;lt;option value=&#38;quot;VehicleComments&#38;quot;&#38;gt;VEHICLE : Comments&#38;lt;/option&#38;gt;
  &#38;lt;option value=&#38;quot;VendorName&#38;quot;&#38;gt;VENDOR : Name&#38;lt;/option&#38;gt;
  &#38;lt;option value=&#38;quot;VendorContact&#38;quot;&#38;gt;VENDOR : Contact&#38;lt;/option&#38;gt;
  &#38;lt;option value=&#38;quot;VendorPhone&#38;quot;&#38;gt;VENDOR : Phone&#38;lt;/option&#38;gt;
  &#38;lt;option value=&#38;quot;VendorEmail&#38;quot;&#38;gt;VENDOR : Email&#38;lt;/option&#38;gt;
  &#38;lt;option value=&#38;quot;ProviderName&#38;quot;&#38;gt;PROVIDER : Name&#38;lt;/option&#38;gt;
  &#38;lt;option value=&#38;quot;ProviderService&#38;quot;&#38;gt;PROVIDER : Service&#38;lt;/option&#38;gt;
  &#38;lt;option value=&#38;quot;ProviderURL&#38;quot;&#38;gt;PROVIDER : URL&#38;lt;/option&#38;gt;
  &#38;lt;option value=&#38;quot;ProviderEmail&#38;quot;&#38;gt;PROVIDER : Email&#38;lt;/option&#38;gt;
  &#38;lt;option value=&#38;quot;ProviderPhone&#38;quot;&#38;gt;PROVIDER : Phone&#38;lt;/option&#38;gt;
&#38;lt;/select&#38;gt;

&#38;lt;/li&#38;gt;
&#38;lt;?php
}
}

// SAVE AND LOAD FIELD SETTING ON ADMIN SIDE

add_action(&#38;quot;gform_editor_js&#38;quot;, &#38;quot;my_gform_editor_js&#38;quot;);

function my_gform_editor_js(){
?&#38;gt;
&#38;lt;script&#38;gt;
//binding to the load field settings event
jQuery(document).bind(&#38;quot;gform_load_field_settings&#38;quot;, function(event, field, form){
jQuery(&#38;quot;#adf_field&#38;quot;).val(field[&#38;quot;adf_field&#38;quot;]);
});
&#38;lt;/script&#38;gt;

&#38;lt;?php
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
