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

GravityView_Edit_Entry_Render $object More...

Go to the source code of this file.

Variables

if(current_filter()==='gform_previous_button') if(current_filter()==='gform_next_button') $back_link = apply_filters( 'gravityview/edit_entry/cancel_link', remove_query_arg( array( 'page', 'view', 'edit' ) ), $object->form, $object->entry, $object->view_id )
 
 $cancel_label = GFCommon::replace_variables( $labels['cancel'], $object->form, $object->entry )
 
 $cancel_onclick = empty( $cancel_onclick_js ) ? '' : 'onclick="' . esc_attr( $cancel_onclick_js ) . '"'
 
 $cancel_onclick_js = apply_filters( 'gravityview/edit_entry/cancel_onclick', 'history.go(' . ( $update_count + 1 ) * -1 . '); return false;', $object->form, $object->entry, $object->view_id, $update_count )
 
if( $object->show_previous_button) if( $object->show_next_button) if( $object->show_update_button) $cancel_tabindex = GFCommon::get_tabindex()
 
 $labels = $object->get_action_labels()
 
 $update_count = (int) \GV\Utils::_POST( 'update_count', 0 )
 

Detailed Description

GravityView_Edit_Entry_Render $object

Definition in file form-buttons.php.

Variable Documentation

◆ $back_link

if (current_filter()==='gform_previous_button') if (current_filter()==='gform_next_button') $back_link = apply_filters( 'gravityview/edit_entry/cancel_link', remove_query_arg( array( 'page', 'view', 'edit' ) ), $object->form, $object->entry, $object->view_id )
Runs Filter:
gravityview/edit_entry/cancel_link Modify the cancel button link URL
Since
1.11.1
2.11 The cancel link now uses history.back() so the $back_link URL matters less.
Parameters
string$back_linkExisting URL of the Cancel link
array$formThe Gravity Forms form
array$entryThe Gravity Forms entry
int$view_idThe current View ID

Definition at line 32 of file form-buttons.php.

Referenced by GravityView_Edit_Entry_Render\maybe_print_message().

◆ $cancel_label

$cancel_label = GFCommon::replace_variables( $labels['cancel'], $object->form, $object->entry )

Definition at line 70 of file form-buttons.php.

◆ $cancel_onclick

$cancel_onclick = empty( $cancel_onclick_js ) ? '' : 'onclick="' . esc_attr( $cancel_onclick_js ) . '"'

Definition at line 88 of file form-buttons.php.

◆ $cancel_onclick_js

$cancel_onclick_js = apply_filters( 'gravityview/edit_entry/cancel_onclick', 'history.go(' . ( $update_count + 1 ) * -1 . '); return false;', $object->form, $object->entry, $object->view_id, $update_count )
Runs Filter:
gravityview/edit_entry/cancel_onclick Modify the onclick attribute for the back link.

To remove onclick altogether, return an empty string.

Since
2.13.4
Parameters
string$back_linkExisting "back" of the Cancel link.
array$formThe Gravity Forms form.
array$entryThe Gravity Forms entry.
int$view_idThe current View ID.
int$update_countThe number of pages to go back based on the # of updates to the edited form.

Definition at line 86 of file form-buttons.php.

◆ $cancel_tabindex

if ($object->show_previous_button) if ($object->show_next_button) if ($object->show_update_button) $cancel_tabindex = GFCommon::get_tabindex()

Definition at line 69 of file form-buttons.php.

◆ $labels

$labels = $object->get_action_labels()

◆ $update_count

$update_count = (int) \GV\Utils::_POST( 'update_count', 0 )