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.

How does one set the label on a (programmatically created) custom field?

  1. Hello,

    I've set up my custom input using the following action/filter hooks:
    add_filter('gform_add_field_buttons',
    array(
    'someClass',
    'gravityCreateAdminElement'
    ));

    // Title the button
    add_filter('gform_field_type_title',
    array(
    'someClass',
    'gravitySetAdminElementTitle'
    ));
    add_action("gform_field_input",
    array(
    'someClass',
    'gravityCreateInputElement'
    ), 10, 5);

    What does one need to do in order to set the label correctly for these two points?
    1. Entry details (currently displays, "untitled").
    2. Form edit window (currently displays, "untitled")

    Thanks!

    Posted 12 years ago on Wednesday June 20, 2012 | Permalink