Preset shows up empty when selected in dropdown list.
-
Hi, I’ve created a preset following the tutorial on your website.
It’s a simple plugin as recommended with my hook.The present name does show up, I can select it, however, the actual content appears empty.
The text files are on the same level where the plugin.php is.
I made sure to double check that the online version does have content
mycustomcalderasettings/mylist.txtcontents example:
Name Person One
Name Person Two
Name Person Three
Name Person Fourmycustomcalderasettings/plugin.php
add_filter( ‘caldera_forms_field_option_presets’, function( $presets ){
$presets[ ‘mylist’ ] = array(
‘name’ => ‘My List’,
‘data’ => file_get_contents( ‘mylist.txt’ ),
);
return $presets;
});Thanks for your expert advice.
- The topic ‘Preset shows up empty when selected in dropdown list.’ is closed to new replies.