Tiuz
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Plugins
In reply to: [Advanced Custom Fields: Ninjaforms Add-on] Activation Fatal ErrorI am getting the same error:
Fatal error: Call to undefined method NF_Form::get_forms() in /path/to/wordpress/wp-content/plugins/acf-ninjaforms-add-on/resources/Notices.php on line 19
Using the following versions:
- WordPress 4.9.4
- ACF Pro 4.4.12
- Ninjaforms 3.2.21
Solved the problem now.
The solution if somebody else need something similar:
I installed Shortcode Exec PHP and created a new shortcode called ninja_setfield.
extract(shortcode_atts(array('id' => '0', 'val' => '0'), $atts)); global $ninja_value; global $ninja_id; $ninja_value= $val; $ninja_id = $id; function my_filter_function( $data, $field_id ){ global $ninja_value; global $ninja_id; if( $field_id == $ninja_id){ $data['default_value'] = $ninja_value; } return $data; } add_filter( 'ninja_forms_field', 'my_filter_function', 10, 2 );And called the following shortcodes in my article:
[ninja_set_field id=17 val='2015-06-04'] [ninja_forms id=6]Thank you for the link.
Will try it now.Do you have any information about this. An example or a link to a guide would be really great 🙂
But if I store the date of the course in a hidden field I need to create a form for every single course and this is what I want to avoid.
Viewing 5 replies - 1 through 5 (of 5 total)