Support » Plugin: Caldera Forms - More Than Contact Forms » Preset shows up empty when selected in dropdown list.

  • Resolved vi54

    (@vi54)


    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.txt

    contents example:
    Name Person One
    Name Person Two
    Name Person Three
    Name Person Four

    mycustomcalderasettings/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.

Viewing 1 replies (of 1 total)
  • Plugin Contributor christiechirinos

    (@christiechirinos)

    Hi Vi,

    Just so you know, you may get help from the power users that browse this forum, but our support at Caldera WP doesn’t generally cover doing reviews for customizations of our products. However, we have set up multiple resources available that can point you in the right direction:

    On the documentation page for any of our hooks, for example this one https://calderaforms.com/doc/caldera_forms_render_get_field/, there is a panel at the end with the header “Where Does This Code Go?” That gives you links to introductory articles about what WordPress hooks are, why you use them and how to use them. It may be worthwhile to review these to make sure your code is somewhere where it will work with Caldera Forms.

    Caldera Forming is our community forum. As a part of this community, you can ask fellow Caldera Forms users for help with custom code and design. https://www.facebook.com/groups/651862761663883

    If you’re looking for comprehensive assistance in developing your site (as opposed to small code modifications), or if you’d rather leave the customization to the professionals, consider reaching out to someone from our list of recommended developers: https://calderaforms.com/recommended-developers/.

    Visit our developer documentation for tutorials and troubleshooting help. https://calderaforms.com/category/developer-api/

    If you’re adding code from a third-party source, we recommend reaching out to the source for help.

Viewing 1 replies (of 1 total)
  • The topic ‘Preset shows up empty when selected in dropdown list.’ is closed to new replies.