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

Go to the source code of this file.

Variables

 $entry = $gravityview->entry->as_entry()
 
if(! isset( $gravityview)||empty( $gravityview->template)) $field = $gravityview->field->field
 The default quiz field output template. More...
 
 $field_settings = $gravityview->field->as_configuration()
 
 $form = $gravityview->view->form->form
 
if(gv_empty( $value)) if(! class_exists( 'GFQuiz')) $show_answer = \GV\Utils::get( $field_settings, 'quiz_show_explanation' )
 
 $value = $gravityview->value
 
$field gquizShowAnswerExplanation = ! empty( $show_answer )
 

Variable Documentation

◆ $entry

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

Definition at line 17 of file field-quiz-html.php.

◆ $field

if (! isset($gravityview)||empty($gravityview->template)) $field = $gravityview->field->field

The default quiz field output template.

$gravityview

Since
2.0

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

◆ $field_settings

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

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

◆ $form

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

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

◆ $show_answer

if (gv_empty($value)) if (! class_exists('GFQuiz')) $show_answer = \GV\Utils::get( $field_settings, 'quiz_show_explanation' )

Definition at line 31 of file field-quiz-html.php.

◆ $value

$value = $gravityview->value

Definition at line 15 of file field-quiz-html.php.

◆ gquizShowAnswerExplanation

$field gquizShowAnswerExplanation = ! empty( $show_answer )

Definition at line 34 of file field-quiz-html.php.