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.

Admin Label in form editor

  1. mikecimi
    Member

    Hi,

    Is the admin label supposed to show up in the form editor as the main field description? If not, is there a way to do this? I have a form with dropdown boxes using conditional logic. The first dropdown is class type (Algebra, English, etc) and then the next drop down populates with dates based on the class type. I have multiple date dropdowns all named the same for the user but cannot tell which is which in the admin without clicking on each one. Since this will change frequently, I was hoping to easily tell which field is which. I am using version 1.4.5.

    Thanks
    -Mike

    Posted 14 years ago on Thursday February 10, 2011 | Permalink
  2. The Admin Label overrides the Field Label when the field is displayed in the admin.

    This is primarily used in the Entry List page where you configure what columns are displayed. The Admin Label is used for the column header for that field. It is also useful when you want a blank Field Label such as when you have checkboxes that you want to appear without a field label. If you populate an Admin Label you can leave the Field Label blank on the front end while still having a label for that field in the admin.

    It is not shown on the form itself. It is used in situations where a label is necessary and either the Field Label is something really long or is left blank.

    Posted 14 years ago on Thursday February 10, 2011 | Permalink
  3. mikecimi
    Member

    This is what I was expecting "The Admin Label overrides the Field Label when the field is displayed in the admin." but it is not working. It is showing the normal field label instead. The admin label is showing up in the entry list page though. Maybe my understanding is wrong but if you look at this image http://blacklinepartners.com/gravity.gif I was expecting "warm fusion dates" to show up where is says "show date and location".

    Thanks again,
    -Mike

    Posted 14 years ago on Thursday February 10, 2011 | Permalink
  4. No, the Admin Label isn't used there. Thats the form display. The Field Label is displayed there. The Admin Label is used in the other areas of the admin when viewing Entry data.

    Posted 14 years ago on Thursday February 10, 2011 | Permalink
  5. mikecimi
    Member

    Is there an easy way for me change this in the code? I know it would break when I update the plugin, but I'm ok with that. It would make things much easier in the long run.

    Thanks
    -Mike

    Posted 14 years ago on Thursday February 10, 2011 | Permalink
  6. I'm not 100% sure what would need to be changed, you'd have to inspect the code that outputs the form builder. We don't support changes to the core code so I can't provide you with exact instructions as it's considered a customization.

    Posted 14 years ago on Thursday February 10, 2011 | Permalink
  7. mikecimi
    Member

    In case anyone else is interested, all that needs to be changed is line 415 in form_detail.php. Change true to false

    [php]
        if(is_array($form["fields"]))
        {
           require_once(GFCommon::get_base_path() . "/form_display.php");
           foreach($form["fields"] as $field){
                    echo GFFormDisplay::get_field($field, "", false);       //<--- line 415
         }
    Posted 14 years ago on Thursday February 10, 2011 | Permalink
  8. Thanks mikecimi. Good find!

    Would be great to have this as an option so that you can choose whether to display the field label or admin label in the form editing screen.

    Posted 13 years ago on Thursday November 29, 2012 | Permalink
  9. We don't recommend or support changing any core WordPress files.

    Posted 13 years ago on Saturday December 1, 2012 | Permalink

This topic has been resolved and has been closed to new replies.