Flush nested form field cache

[ad_1]

For a strange reason the field of nested form are cached.
Currently the plugin does not export latest fields added

I’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 ?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer