GravityView  1.22.6
The best, easiest way to display Gravity Forms entries on your website.
Namespaces | Variables
select.php File Reference

Go to the source code of this file.

Namespaces

 GravityView
 includes
 

Variables

 $gravityview_view = GravityView_View::getInstance()
 
 $show_label = apply_filters( 'gravityview/fields/select/output_label', ( 'label' === rgar( $field_settings, 'choice_display' ) ), $entry, $field )
 
if( $show_label &&!empty( $field->choices) &&is_array( $field->choices) &&'' !==$display_value) else
 

Variable Documentation

◆ $gravityview_view

$gravityview_view = GravityView_View::getInstance()

Definition at line 9 of file select.php.

◆ $show_label

$show_label = apply_filters( 'gravityview/fields/select/output_label', ( 'label' === rgar( $field_settings, 'choice_display' ) ), $entry, $field )
Runs Filter:
gravityview/fields/select/output_label Override whether to show the value or the label of a Select field
Since
1.5.2
Parameters
bool$show_labelTrue: Show the label of the Choice; False: show the value of the Choice. Default: false
array$entryGF Entry
GF_Field_Select$fieldGravity Forms Select field

Definition at line 20 of file select.php.

◆ else

if ($show_label &&!empty($field->choices) &&is_array($field->choices) &&'' !==$display_value) else
Initial value:
{
$output = $display_value

Definition at line 24 of file select.php.