Flush nested form field cache
-
For a strange reason the field of nested form are cached.
Currently the plugin does not export latest fields addedI’ve found the lines involving this problem inside nestedFormField.php
// Cache the results. $this->fields = array_reduce( $nested_form['fields'], function ( array $fields, \GF_Field $field ) { if ( in_array( $field->id, $this->field->gpnfFields ?? [], false ) ) { $fields[ $field->id ] = $this->transformer->transform( $field ); } return $fields; }, [] );
Disabling the if it is working
if ( in_array( $field->id, $this->field->gpnfFields ?? [], false ) ) {
Have you got a solution to refresh the field of nested form from dashboard ?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Flush nested form field cache’ is closed to new replies.