PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Meta Box of custom fields

  1. fuhrmara
    Member

    Hi !

    Is it possible to add a meta-box with customs fields i created in a gravity form at the admin-panel (edit posts/pages) with the same input behavior as on the front-end ?
    So it's possible for an admin to edit the field settings.

    Regards
    Ralf

    Posted 14 years ago on Sunday January 10, 2010 | Permalink
  2. Are you referring to being able to use a Gravity Form as a custom write panel when creating a post/page using edit posts/pages? Currently this isn't possible.

    So far the focus of the plugin has been about collecting data on the front end. It is a feature that has come up a few times so we will be looking into how we can put the Gravity Forms functionality to use on the backend.

    The only thing you could do at this point is create a form you want to use to create posts with the necessary custom fields and then use the Preview functionality to submit the form and create the posts.

    Posted 14 years ago on Sunday January 10, 2010 | Permalink
  3. While you can't embed part of the form on the standard edit/add posts/page screens... one thing you could do is create your own plugin that adds a menu item for a custom post creation page and then the plugin itself simply calls the gravity forms function call to display a form. That would take some plugin development knowledge to pull off. But it is certainly possible.

    Posted 14 years ago on Sunday January 10, 2010 | Permalink
  4. fuhrmara
    Member

    Hi !

    Thanks for the answer.
    I try the following (very simple) code example

    [code]
    function new_gravity_boxes()
    {
    gravity_form(1, false, false);
    } // end new_gravity_boxes

    function create_gravity_box()
    {
    if ( function_exists('add_meta_box') ) {
    add_meta_box( 'new-gravity-boxes', __('deLuxe - Profile Settings','deluxe'), 'new_gravity_boxes', 'post', 'normal', 'high' );
    }
    } // end create_gravity_box

    add_action('admin_menu', 'create_gravity_box');

    [/code]

    But the form doesn't takes the custom-field values.

    Posted 14 years ago on Sunday January 10, 2010 | Permalink