{"id":10100,"date":"2016-05-17T18:23:02","date_gmt":"2016-05-17T22:23:02","guid":{"rendered":"https:\/\/docs.gravityforms.com\/?post_type=gdoc&#038;p=10100"},"modified":"2019-02-12T13:04:39","modified_gmt":"2019-02-12T18:04:39","slug":"gf_field_select","status":"publish","type":"post","link":"https:\/\/docs.gravityforms.com\/gf_field_select\/","title":{"rendered":"GF_Field_Select"},"content":{"rendered":"<h2 id=\"h-introduction\">Introduction<\/h2>\n<p>The GF_Field_Select class extends the <a data-autolink=\"autolink_gf_field\" href=\"\/gf_field\">GF_Field<\/a> class, also known as the <a data-autolink=\"autolink_field-object\" href=\"\/field-object\">Field Object<\/a>. This class is responsible for determining how the Drop Down field is rendered when the form is displayed and how its value is handled during and after form submission. This class also handles the rendering of the Product, Product Option, Quantity, Shipping fields when they are a drop down.<\/p>\n<h2 id=\"h-settings-and-properties\">Settings and Properties<\/h2>\n<p>Settings control what options are available to the admin user when configuring the field in the form editor. Gravity Forms includes many built-in settings such as Field Label, Field Description, Choices, Conditional Logic, etc. In addition to built-in settings, custom settings can also be developed. For more information on how to develop custom settings and how to associate settings to a field, visit the <a href=\"https:\/\/docs.gravityforms.com\/gf_field\/#get_form_editor_field_settings\" target=\"_blank\">GF_Field page<\/a>.<\/p>\n<p>Properties contain the values specified by the settings and generally are part of the <a data-autolink=\"autolink_field-object\" href=\"\/field-object\">Field Object<\/a>.<\/p>\n<p>The properties may be retrieved by accessing the <a data-autolink=\"autolink_field-object\" href=\"\/field-object\">Field Object<\/a> as follows:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\/\/get the field\r\n$field = GFFormsModel::get_field( $form, 1 );\r\n\r\n\/\/get the admin label\r\n$admin_label = $field-&gt;adminLabel;\r\n<\/pre>\n<h3 id=\"h-settings-0\">Settings<\/h3>\n<p>The following settings are available for the field:<\/p>\n<ul>\n<li><strong>admin_label_setting<\/strong><br \/>\nControls whether the &#8220;Admin Field Label&#8221; setting appears.<\/p>\n<\/li>\n<li>\n<p><strong>choices_setting<\/strong><br \/>\nDetermines whether the &#8220;Choices&#8221; setting displays. This section allows you to create different drop down selections and set associated values to each one. It also allows you to choose from a pre-defined set of data that may be used to create the items in the drop down. Without this section, the drop down selections are limited to &#8220;First Choice&#8221;, &#8220;Second Choice&#8221; and &#8220;Third Choice&#8221; and may not be changed in the editor.<\/p>\n<\/li>\n<li>\n<p><strong>conditional_logic_field_setting<\/strong><br \/>\nControls whether the &#8220;Enable Conditional Logic&#8221; setting appears.<\/p>\n<\/li>\n<li>\n<p><strong>css_class_setting<\/strong><br \/>\nControls whether the &#8220;Custom CSS Class&#8221; setting displays. This allows a custom css to be used for the field.<\/p>\n<\/li>\n<li>\n<p><strong>default_value_setting<\/strong><br \/>\nControls whether the &#8220;Default Values&#8221; section displays. This allows a value to be set for the field.<\/p>\n<\/li>\n<li>\n<p><strong>description_setting<\/strong><br \/>\nControls whether the &#8220;Description&#8221; setting appears. This allows a description for the field to be displayed.<\/p>\n<\/li>\n<li>\n<p><strong>duplicate_setting<\/strong><br \/>\nControls whether the &#8220;No Duplicates&#8221; setting displays within the &#8220;Rules&#8221; section. This controls whether the same value may exist more than once in the database. The &#8220;Rules&#8221; setting must be active for this to display.<\/p>\n<\/li>\n<li>\n<p><strong>enable_enhanced_ui_setting<\/strong><br \/>\nDetermines whether the &#8220;Enable enhanced user interface&#8221; setting displays. This setting allows the Chosen jquery script to be used to add search capability to the drop down.<\/p>\n<\/li>\n<li>\n<p><strong>error_message_setting<\/strong><br \/>\nControls whether the &#8220;Custom Validation Message&#8221; setting which allows a custom message to be used appears.<\/p>\n<\/li>\n<li>\n<p><strong>label_setting<\/strong><br \/>\nControls whether the &#8220;Field Label&#8221; setting which allows the label to be changed appears.<\/p>\n<\/li>\n<li>\n<p><strong>placeholder_setting<\/strong><br \/>\nControls whether the &#8220;Placeholders&#8221; section appears. This allows placeholder text to display for the field.<\/p>\n<\/li>\n<li>\n<p><strong>prepopulate_field_setting<\/strong><br \/>\nControls whether the &#8220;Allow field to be populated dynamically&#8221; setting appears.<\/p>\n<\/li>\n<li>\n<p><strong>rules_setting<\/strong><br \/>\nControls whether the &#8220;Rules&#8221; settings section displays. The &#8220;Required&#8221; option shows when this is active.<\/p>\n<\/li>\n<li>\n<p><strong>size_setting<\/strong><br \/>\nControls whether the &#8220;Field Size&#8221; setting displays. This controls the size of the input field for fields to which it applies. The sizes are &#8220;small&#8221;, &#8220;medium&#8221;, and &#8220;large&#8221;.<\/p>\n<\/li>\n<li>\n<p><strong>visibility_setting<\/strong><br \/>\nControls whether the &#8220;Visibility&#8221; setting displays. The controls whether the option of visibility being for &#8220;Everyone&#8221; or &#8220;Admin Only&#8221; can be set.<\/p>\n<\/li>\n<\/ul>\n<div class=\"gf-docs-parameters\">\n<h3 id=\"h-properties\">Properties<\/h3>\n<p>Below is a listing of the properties inherited from the parent class and ones unique to the field.<\/p>\n<ul>\n<li><strong>adminLabel<\/strong> <a data-autolink=\"autolink_string\" href=\"\/string\">string<\/a>\n<p>The label to be used on admin pages instead of the label, useful for fields with long labels.<\/p>\n<\/li>\n<li>\n<p><strong>adminOnly<\/strong> <a data-autolink=\"autolink_boolean\" href=\"\/boolean\">boolean<\/a><\/p>\n<p>Determines whether the field is visible to the user submitting the form, or only visible in the admin.<\/p>\n<\/li>\n<li>\n<p><strong>allowsPrepopulate<\/strong> <a data-autolink=\"autolink_boolean\" href=\"\/boolean\">boolean<\/a><\/p>\n<p>Determines if the field values can be dynamically populated. Default is false.<\/p>\n<\/li>\n<li>\n<p><strong>choices<\/strong> <a data-autolink=\"autolink_array\" href=\"\/array\">array<\/a><\/p>\n<p>An array containing the the individual properties for each item in the drop down.<\/p>\n<ul>\n<li><strong>text<\/strong> <a data-autolink=\"autolink_string\" href=\"\/string\">string<\/a>\n<p>The text that is displayed for the drop down.<\/p>\n<\/li>\n<li>\n<p><strong>value<\/strong> <a data-autolink=\"autolink_string\" href=\"\/string\">string<\/a><\/p>\n<p>The value that is used for the drop down when the form is submitted.<\/p>\n<\/li>\n<li>\n<p><strong>isSelected<\/strong> <a data-autolink=\"autolink_boolean\" href=\"\/boolean\">boolean<\/a><\/p>\n<p>Indicates whether the drop down item is selected<\/p>\n<\/li>\n<li>\n<p><strong>price<\/strong> <a data-autolink=\"autolink_string\" href=\"\/string\">string<\/a><\/p>\n<p>Used when the drop down is a Product, Product Option or Shiping field and contains the item price.<\/p>\n<\/li>\n<\/ul>\n<p>Below is an example of the output:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$choices = array(\r\n             array(\r\n               'text'       =&gt; 'First Choice',\r\n               'value'      =&gt; 'one',\r\n               'isSelected' =&gt; false,\r\n               'price'      =&gt; '$5.00' \/\/only populated if a product, product option, shipping field\r\n             ),\r\n             array(\r\n               'text'       =&gt; 'Second Choice',\r\n               'value'      =&gt; 'two',\r\n               'isSelected' =&gt; true,\r\n               'price'      =&gt; ''\r\n             ),\r\n             array(\r\n               'text'       =&gt; 'Third Choice',\r\n               'value'      =&gt; 'three',\r\n               'isSelected' =&gt; false,\r\n               'price'      =&gt; ''\r\n             ),\r\n           )\r\n<\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>conditionalLogic<\/strong> <a data-autolink=\"autolink_array\" href=\"\/array\">array<\/a><\/p>\n<p>An associative array containing the conditional logic rules. See the <a data-autolink=\"autolink_conditional-logic-object\" href=\"\/conditional-logic-object\">Conditional Logic Object<\/a> for more details.<\/p>\n<\/li>\n<li>\n<p><strong>cssClass<\/strong> <a data-autolink=\"autolink_string\" href=\"\/string\">string<\/a><\/p>\n<p>The custom CSS class or classes to be added to the input tag for the field.<\/p>\n<\/li>\n<li>\n<p><strong>defaultValue<\/strong> <a data-autolink=\"autolink_string\" href=\"\/string\">string<\/a><\/p>\n<p>The default value to be chosen in the drop down field. This must match to a value for one of the items.<\/p>\n<\/li>\n<li>\n<p><strong>description<\/strong> <a data-autolink=\"autolink_string\" href=\"\/string\">string<\/a><\/p>\n<p>The field description.<\/p>\n<\/li>\n<li>\n<p><strong>descriptionPlacement<\/strong> <a data-autolink=\"autolink_string\" href=\"\/string\">string<\/a><\/p>\n<p>The placement of the field description. The description may be placed &#8220;above&#8221; or &#8220;below&#8221; the field inputs. If the placement is not specified, then the description placement setting for the Form Layout is used.<\/p>\n<\/li>\n<li>\n<p><strong>enableChoiceValue<\/strong> <a data-autolink=\"autolink_boolean\" href=\"\/boolean\">boolean<\/a><\/p>\n<p>Indicates whether the &#8220;show values&#8221; option within the &#8220;Choices&#8221; section of the editor is checked.<\/p>\n<\/li>\n<li>\n<p><strong>enableEnhancedUI<\/strong> <a data-autolink=\"autolink_boolean\" href=\"\/boolean\">boolean<\/a><\/p>\n<p>Indicates whether the option to use the Chosen jquery script to add search capability to the drop down is checked.<\/p>\n<\/li>\n<li>\n<p><strong>enablePrice<\/strong> <a data-autolink=\"autolink_boolean\" href=\"\/boolean\">boolean<\/a><\/p>\n<p>This property is used when the drop down is a Product, Product Option, or Shipping field and will be set to true. If not associated with one of those fields, it is false.<\/p>\n<\/li>\n<li>\n<p><strong>errorMessage<\/strong> <a data-autolink=\"autolink_string\" href=\"\/string\">string<\/a><\/p>\n<p>The custom error message to be displayed if the field fails validation.<\/p>\n<\/li>\n<li>\n<p><strong>formId<\/strong> <a data-autolink=\"autolink_integer\" href=\"\/integer\">integer<\/a><\/p>\n<p>The form ID.<\/p>\n<\/li>\n<li>\n<p><strong>id<\/strong> <a data-autolink=\"autolink_integer\" href=\"\/integer\">integer<\/a><\/p>\n<p>The field ID.<\/p>\n<\/li>\n<li>\n<p><strong>inputName<\/strong> <a data-autolink=\"autolink_string\" href=\"\/string\">string<\/a><\/p>\n<p>The parameter name used when dynamically populating the field.<\/p>\n<\/li>\n<li>\n<p><strong>inputType<\/strong> <a data-autolink=\"autolink_string\" href=\"\/string\">string<\/a><\/p>\n<p>Used when the field has a sub-type. For instance, when the drop down is a Product, Product Option, Quantity, or Shipping field, then the &#8220;type&#8221; is set to <strong>product<\/strong> when a Product field, <strong>option<\/strong> when a Product Option field, <strong>quantity<\/strong> when a Quantity field, <strong>shipping<\/strong> when a Shipping field. The &#8220;inputType&#8221; is set to <strong>select<\/strong>. When the field is created, the type is initially set using the &#8220;type&#8221; property. If &#8220;inputType&#8221; is not empty, then the &#8220;inputType&#8221; is used to create the field instead.<\/p>\n<\/li>\n<li>\n<p><strong>isRequired<\/strong> <a data-autolink=\"autolink_boolean\" href=\"\/boolean\">boolean<\/a><\/p>\n<p>Marking the field as required will prevent the form from being submitted if the user does not enter a value. Default is false.<\/p>\n<\/li>\n<li>\n<p><strong>label<\/strong> <a data-autolink=\"autolink_string\" href=\"\/string\">string<\/a><\/p>\n<p>The field label that will be displayed on the form and on the admin pages.<\/p>\n<\/li>\n<li>\n<p><strong>noDuplicates<\/strong> <a data-autolink=\"autolink_boolean\" href=\"\/boolean\">boolean<\/a><\/p>\n<p>Determines if the value entered by the user may already exist in the database.<\/p>\n<\/li>\n<li>\n<p><strong>placeholder<\/strong> <a data-autolink=\"autolink_string\" href=\"\/string\">string<\/a><\/p>\n<p>Placeholder text to give the user a hint on how to fill out the field. This is not submitted with the form. This will be displayed as the first item in the drop down.<\/p>\n<\/li>\n<li>\n<p><strong>productField<\/strong> <a data-autolink=\"autolink_integer\" href=\"\/integer\">integer<\/a><\/p>\n<p>The id of the product field to which the drop down is associated. This is used when the drop down is an Option or Quantity field associated with a product.<\/p>\n<\/li>\n<li>\n<p><strong>size<\/strong> <a data-autolink=\"autolink_string\" href=\"\/string\">string<\/a><\/p>\n<p>Controls the width of the input field. The choices are &#8220;small&#8221;, &#8220;medium&#8221;, and &#8220;large&#8221;.<\/p>\n<\/li>\n<li>\n<p><strong>type<\/strong> <a data-autolink=\"autolink_string\" href=\"\/string\">string<\/a><\/p>\n<p>The field type. It is normally <strong>select<\/strong>, unless the drop down is a Product, Product Option, Quantity or Shipping field. The type is set to <strong>product<\/strong> when a Product Field, <strong>option<\/strong> when a Product Option field, <strong>quantity<\/strong> when a Quantity, <strong>shipping<\/strong> when a Shipping field. The &#8220;inputType&#8221; is set to <strong>select<\/strong>.<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<h2 id=\"h-source-code\">Source Code<\/h2>\n<p>The source code is located in <em>includes\/fields\/class-gf-field-select.php<\/em> in the Gravity Forms folder of your sites plugins directory.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This class is responsible for determining how the Drop Down field is rendered when the form is displayed and how its value is handled during and after form submission. This class also handles the rendering of the Product, Product Option, Quantity, and Shipping fields when they are a drop down.<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_autodraft_ids":[],"_sb_is_suggestion_mode":false,"_sb_show_suggestion_boards":false,"_sb_show_comment_boards":false,"_sb_suggestion_history":"","_sb_update_block_changes":"","_is_real_time_mode":false,"_realtime_collaborators":"","footnotes":"","jetpack_post_was_ever_published":false,"cf_checklist_status":[]},"categories":[301],"tags":[],"class_list":["post-10100","post","type-post","status-publish","format-standard","hentry","category-field-classes","wpautop"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.7) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>GF_Field_Select - Gravity Forms Documentation<\/title>\n<meta name=\"description\" content=\"This class is responsible for determining how the Drop Down field is rendered when the form is displayed and how its value is handled during and after form submission. This class also handles the rendering of the Product, Product Option, Quantity, Shipping fields when they are a drop down.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.gravityforms.com\/gf_field_select\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GF_Field_Select\" \/>\n<meta property=\"og:description\" content=\"This class is responsible for determining how the Drop Down field is rendered when the form is displayed and how its value is handled during and after form submission. This class also handles the rendering of the Product, Product Option, Quantity, Shipping fields when they are a drop down.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.gravityforms.com\/gf_field_select\/\" \/>\n<meta property=\"og:site_name\" content=\"Gravity Forms Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2016-05-17T22:23:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-02-12T18:04:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2023\/08\/gf-docs-default-v3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"544\" \/>\n\t<meta property=\"og:image:height\" content=\"288\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Justin Pakes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@gravityforms\" \/>\n<meta name=\"twitter:site\" content=\"@gravityforms\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Justin Pakes\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/gf_field_select\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/gf_field_select\\\/\"},\"author\":{\"name\":\"Justin Pakes\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#\\\/schema\\\/person\\\/8a88745ec2ee5bc1bb24eea8634bf376\"},\"headline\":\"GF_Field_Select\",\"datePublished\":\"2016-05-17T22:23:02+00:00\",\"dateModified\":\"2019-02-12T18:04:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/gf_field_select\\\/\"},\"wordCount\":1275,\"publisher\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#organization\"},\"articleSection\":[\"Field Classes\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/gf_field_select\\\/\",\"url\":\"https:\\\/\\\/docs.gravityforms.com\\\/gf_field_select\\\/\",\"name\":\"GF_Field_Select - Gravity Forms Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#website\"},\"datePublished\":\"2016-05-17T22:23:02+00:00\",\"dateModified\":\"2019-02-12T18:04:39+00:00\",\"description\":\"This class is responsible for determining how the Drop Down field is rendered when the form is displayed and how its value is handled during and after form submission. This class also handles the rendering of the Product, Product Option, Quantity, Shipping fields when they are a drop down.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/gf_field_select\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/docs.gravityforms.com\\\/gf_field_select\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/gf_field_select\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/docs.gravityforms.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GF_Field_Select\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#website\",\"url\":\"https:\\\/\\\/docs.gravityforms.com\\\/\",\"name\":\"Gravity Forms Documentation\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/docs.gravityforms.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#organization\",\"name\":\"Gravity Forms\",\"url\":\"https:\\\/\\\/docs.gravityforms.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/docs.gravityforms.com\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/gravity-forms-2020-logo-stacked.png\",\"contentUrl\":\"https:\\\/\\\/docs.gravityforms.com\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/gravity-forms-2020-logo-stacked.png\",\"width\":392,\"height\":515,\"caption\":\"Gravity Forms\"},\"image\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/gravityforms\",\"http:\\\/\\\/@gravityforms.com\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#\\\/schema\\\/person\\\/8a88745ec2ee5bc1bb24eea8634bf376\",\"name\":\"Justin Pakes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/791cb5bec00c6dd4bec2e80cf4df9638297207d8f77890c96b6b483be434ecea?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/791cb5bec00c6dd4bec2e80cf4df9638297207d8f77890c96b6b483be434ecea?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/791cb5bec00c6dd4bec2e80cf4df9638297207d8f77890c96b6b483be434ecea?s=96&d=mm&r=g\",\"caption\":\"Justin Pakes\"},\"url\":\"https:\\\/\\\/docs.gravityforms.com\\\/author\\\/pakes\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"GF_Field_Select - Gravity Forms Documentation","description":"This class is responsible for determining how the Drop Down field is rendered when the form is displayed and how its value is handled during and after form submission. This class also handles the rendering of the Product, Product Option, Quantity, Shipping fields when they are a drop down.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.gravityforms.com\/gf_field_select\/","og_locale":"en_US","og_type":"article","og_title":"GF_Field_Select","og_description":"This class is responsible for determining how the Drop Down field is rendered when the form is displayed and how its value is handled during and after form submission. This class also handles the rendering of the Product, Product Option, Quantity, Shipping fields when they are a drop down.","og_url":"https:\/\/docs.gravityforms.com\/gf_field_select\/","og_site_name":"Gravity Forms Documentation","article_published_time":"2016-05-17T22:23:02+00:00","article_modified_time":"2019-02-12T18:04:39+00:00","og_image":[{"width":544,"height":288,"url":"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2023\/08\/gf-docs-default-v3.png","type":"image\/png"}],"author":"Justin Pakes","twitter_card":"summary_large_image","twitter_creator":"@gravityforms","twitter_site":"@gravityforms","twitter_misc":{"Written by":"Justin Pakes","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/docs.gravityforms.com\/gf_field_select\/#article","isPartOf":{"@id":"https:\/\/docs.gravityforms.com\/gf_field_select\/"},"author":{"name":"Justin Pakes","@id":"https:\/\/docs.gravityforms.com\/#\/schema\/person\/8a88745ec2ee5bc1bb24eea8634bf376"},"headline":"GF_Field_Select","datePublished":"2016-05-17T22:23:02+00:00","dateModified":"2019-02-12T18:04:39+00:00","mainEntityOfPage":{"@id":"https:\/\/docs.gravityforms.com\/gf_field_select\/"},"wordCount":1275,"publisher":{"@id":"https:\/\/docs.gravityforms.com\/#organization"},"articleSection":["Field Classes"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/docs.gravityforms.com\/gf_field_select\/","url":"https:\/\/docs.gravityforms.com\/gf_field_select\/","name":"GF_Field_Select - Gravity Forms Documentation","isPartOf":{"@id":"https:\/\/docs.gravityforms.com\/#website"},"datePublished":"2016-05-17T22:23:02+00:00","dateModified":"2019-02-12T18:04:39+00:00","description":"This class is responsible for determining how the Drop Down field is rendered when the form is displayed and how its value is handled during and after form submission. This class also handles the rendering of the Product, Product Option, Quantity, Shipping fields when they are a drop down.","breadcrumb":{"@id":"https:\/\/docs.gravityforms.com\/gf_field_select\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.gravityforms.com\/gf_field_select\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.gravityforms.com\/gf_field_select\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.gravityforms.com\/"},{"@type":"ListItem","position":2,"name":"GF_Field_Select"}]},{"@type":"WebSite","@id":"https:\/\/docs.gravityforms.com\/#website","url":"https:\/\/docs.gravityforms.com\/","name":"Gravity Forms Documentation","description":"","publisher":{"@id":"https:\/\/docs.gravityforms.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.gravityforms.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/docs.gravityforms.com\/#organization","name":"Gravity Forms","url":"https:\/\/docs.gravityforms.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.gravityforms.com\/#\/schema\/logo\/image\/","url":"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2020\/01\/gravity-forms-2020-logo-stacked.png","contentUrl":"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2020\/01\/gravity-forms-2020-logo-stacked.png","width":392,"height":515,"caption":"Gravity Forms"},"image":{"@id":"https:\/\/docs.gravityforms.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/gravityforms","http:\/\/@gravityforms.com"]},{"@type":"Person","@id":"https:\/\/docs.gravityforms.com\/#\/schema\/person\/8a88745ec2ee5bc1bb24eea8634bf376","name":"Justin Pakes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/791cb5bec00c6dd4bec2e80cf4df9638297207d8f77890c96b6b483be434ecea?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/791cb5bec00c6dd4bec2e80cf4df9638297207d8f77890c96b6b483be434ecea?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/791cb5bec00c6dd4bec2e80cf4df9638297207d8f77890c96b6b483be434ecea?s=96&d=mm&r=g","caption":"Justin Pakes"},"url":"https:\/\/docs.gravityforms.com\/author\/pakes\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pdGaEa-2CU","_links":{"self":[{"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/posts\/10100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/comments?post=10100"}],"version-history":[{"count":1,"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/posts\/10100\/revisions"}],"predecessor-version":[{"id":21405,"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/posts\/10100\/revisions\/21405"}],"wp:attachment":[{"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/media?parent=10100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/categories?post=10100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/tags?post=10100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}