GravityView  2.1.1
The best, easiest way to display Gravity Forms entries on your website.
Variables
field-checkbox-html.php File Reference

Go to the source code of this file.

Variables

 $display_value = $gravityview->display_value
 
 $entry = $gravityview->entry->as_entry()
 
 $field = $gravityview->field->field
 
 $field_id = $gravityview->field->ID
 The default checkbox field output template. More...
 
 $field_settings = $gravityview->field->as_configuration()
 
 $field_value = gravityview_get_field_value( $entry, $field_id, $display_value )
 
 $form = $gravityview->view->form->form
 
 $is_single_input = floor( $field_id ) !== floatval( $field_id )
 
 $output = ''
 
 $value = $gravityview->value
 
if(! $is_single_input) else
 
 switch ($display_type)
 

Variable Documentation

◆ $display_value

$display_value = $gravityview->display_value

Definition at line 12 of file field-checkbox-html.php.

◆ $entry

$entry = $gravityview->entry->as_entry()

Definition at line 13 of file field-checkbox-html.php.

◆ $field

$field = $gravityview->field->field

Definition at line 9 of file field-checkbox-html.php.

◆ $field_id

$field_id = $gravityview->field->ID

The default checkbox field output template.

$gravityview

Since
2.0

Definition at line 8 of file field-checkbox-html.php.

◆ $field_settings

$field_settings = $gravityview->field->as_configuration()

Definition at line 14 of file field-checkbox-html.php.

◆ $field_value

$field_value = gravityview_get_field_value( $entry, $field_id, $display_value )

Definition at line 26 of file field-checkbox-html.php.

◆ $form

$form = $gravityview->view->form->form

Definition at line 11 of file field-checkbox-html.php.

◆ $is_single_input

$is_single_input = floor( $field_id ) !== floatval( $field_id )

Definition at line 16 of file field-checkbox-html.php.

◆ $output

$output = ''

Definition at line 18 of file field-checkbox-html.php.

◆ $value

$value = $gravityview->value

Definition at line 10 of file field-checkbox-html.php.

◆ else

if (! $is_single_input) else
Initial value:
{
$display_type
Definition: radio.php:13
static get( $array, $key, $default=null)
Grab a value from an array or an object or default.

Definition at line 22 of file field-checkbox-html.php.

◆ switch

switch( $display_type)
Runs Filter:
gravityview_field_tick Change the output for a checkbox "check" symbol. Default is the "dashicons-yes" icon
See also
https://developer.wordpress.org/resource/dashicons/#yes
Parameters
string$outputHTML span with dashicons dashicons-yes class
array$entryGravity Forms entry array
array$fieldGravityView field array
Since
2.0
Parameters

Definition at line 28 of file field-checkbox-html.php.