28 add_filter(
'gravityview/edit_entry/form_fields', array( $this,
'fix_survey_fields' ), 10 );
29 add_action(
'gravityview/edit-entry/render/before', array( $this,
'add_render_hooks' ) );
30 add_action(
'gravityview/edit-entry/render/after', array( $this,
'remove_render_hooks' ) );
32 add_filter(
'gravityview/extension/search/input_type', array( $this,
'modify_search_bar_input_type' ), 10, 2 );
46 $return = $input_type;
48 if(
'survey' === $field_type ) {
65 public function fix_survey_fields( $fields ) {
68 foreach( $fields as &
$field ) {
69 if(
'survey' === $field->type ) {
70 $field->allowsPrepopulate =
true;
85 add_filter(
'gform_field_value', array( $this,
'fix_survey_field_value'), 10, 3 );
98 remove_filter(
'gform_field_value', array( $this,
'fix_survey_field_value'), 10 );
116 if(
'survey' ===
$field->type ) {
127 if ( \
GV\Utils::get(
$field,
'gsurveyLikertEnableMultipleRows' ) ) {
128 list( $row_val, $col_val ) = explode(
':',
$field_value, 2 );
131 if( $row_val ===
$name ) {
Abstract class that makes it easy for plugins and themes to register no-conflict scripts and styles...
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed