GF_Field_Date
Source: includes/fields/class-gf-field-date.php:8
Details
- Kind:
class - Namespace:
(global) - Extends: GF_Field
Methods
| Method | Description |
|---|---|
get_form_editor_field_description() | Returns the field's form editor description. |
get_form_editor_field_icon() | Returns the field's form editor icon. |
get_required_inputs_ids() | Defines the IDs of required inputs. |
is_value_submission_array() | Whether this field expects an array during submission. |
validate() | Validates the date field inputs. |
prepare_complex_validation_value() | Updates the value to use the input ids as the keys before it's used to generate the complex validation message. |
get_field_container_tag() | Returns the HTML tag for the field container. |
get_field_input() | Returns the field inner markup. |
get_format_mask() | Returns the input mask attribute to be applied to the datepicker input. |
get_field_label_class() | Get field label class. |
get_date_array_by_format() | The default value for mulit-input date fields will always be an array in mdy order |
get_value_entry_detail() | Format the entry value for display on the entry detail page and for the {all_fields} merge tag. |
get_value_merge_tag() | Gets merge tag values. |
get_output_date_format() | Returns the date format to use when outputting the entry value on the detail page and when merge tags are processed. |
get_form_inline_script_on_page_render() | Returns a JS script to be rendered in the front end of the form. |
get_input_label() | Return the custom label for an input. |
get_input_placeholder_value() | When no placeholder is set, use the date format as the placeholder. |
get_field_placeholder_attribute() | If the field placeholder property has a value return the input placeholder attribute. |
get_value_save_input() | Sanitize and format the value before it is saved to the Entry Object. |
get_first_input_id() | Removes the "for" attribute in the field label. Inputs are only allowed one label (a11y) and the inputs already have labels. |
get_filter_settings() | Returns the filter settings for the current field. |
post_convert_field() | Upgrades inputs, if needed. |
maybe_update_inputs() | The datefield and datedropdown date field input types can wind up |
get_input_property() | Gets a property value from an input. |
Method Reference
get_form_editor_field_description()
public function get_form_editor_field_description()
Returns the field's form editor description.
Returns
string
Since: 2.5
Source: includes/fields/class-gf-field-date.php:23
get_form_editor_field_icon()
public function get_form_editor_field_icon()
Returns the field's form editor icon.
This could be an icon url or a gform-icon class.