GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Go to the source code of this file.
Variables | |
$default_option = apply_filters('gravityview/extension/search/select_default', ( '' === $placeholder ? '—' : $placeholder ), 'select' ) | |
if(empty( $search_field['choices'])) if(is_array( $search_field['value'])) | $gf_field = GFAPI::get_field( $gravityview_view->getForm(), $search_field['key'] ) |
$gravityview_view = GravityView_View::getInstance() | |
$placeholder = \GV\Utils::get( $gf_field, 'placeholder', '' ) | |
$search_field = $gravityview_view->search_field | |
$view_id = $gravityview_view->getViewId() | |
if (! gv_empty($search_field[ 'label'], false, false)) | |
$default_option = apply_filters('gravityview/extension/search/select_default', ( '' === $placeholder ? '—' : $placeholder ), 'select' ) |
gravityview/extension/search/select_default
Define the text for the default option in a select (multi or single dropdown) string | $default_option | Default: — (—) |
string | $field_type | Field type: "select" or "multiselect" |
Definition at line 32 of file search-field-select.php.
if (empty($search_field[ 'choices'])) if (is_array($search_field[ 'value'])) $gf_field = GFAPI::get_field( $gravityview_view->getForm(), $search_field['key'] ) |
Definition at line 23 of file search-field-select.php.
$gravityview_view = GravityView_View::getInstance() |
Definition at line 8 of file search-field-select.php.
$placeholder = \GV\Utils::get( $gf_field, 'placeholder', '' ) |
Definition at line 24 of file search-field-select.php.
$search_field = $gravityview_view->search_field |
Definition at line 10 of file search-field-select.php.
$view_id = $gravityview_view->getViewId() |
Definition at line 9 of file search-field-select.php.
if(! gv_empty( $search_field['label'], false, false)) |
Definition at line 36 of file search-field-select.php.