Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter avidkayaker908

    (@avidkayaker908)

    Thanks Doeke, works great!

    Thread Starter avidkayaker908

    (@avidkayaker908)

    Doeke,
    can I add more than one form id and field id in this code to replace the label? maybe an array or make it global?

    add_filter('gfexcel_field_label', function($label, GF_Field $field) {
        if ($field->formId === 3 && $field->id === 25) {
            return 'course1';
        }
    
        return $label;
    }, 10, 2);

    Kind Regards
    DeLoy Wilkins

    Thread Starter avidkayaker908

    (@avidkayaker908)

    Thanks so much Doeke,
    New version works perfectly! kudo’s and am really looking forward to implementing.

    Kind Regards
    DeLoy Wilkins

    Thread Starter avidkayaker908

    (@avidkayaker908)

    Thank you so much! Worked like a charm.
    I signed up for the PRO notification. Such a useful plug-in.
    Thanks for your time
    Now onto a great review!

    Thread Starter avidkayaker908

    (@avidkayaker908)

    Thanks for the reply Doeke,
    I tried placing that code and get an error

    Error message: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed in /home/easycdlonline/public_html/forms/wp-includes/class-wp-hook.php on line 294 and exactly 2 expected in /home/easycdlonline/public_html/forms/wp-includes/functions.php:7869
    Stack trace:
    #0 /home/easycdlonline/public_html/forms/wp-includes/class-wp-hook.php(294): {closure}(false)
    #1 /home/easycdlonline/public_html/forms/wp-includes/plugin.php(212): WP_Hook->apply_filters(false, Array)
    #2 /home/easycdlonline/public_html/forms/wp-content/plugins/gravityforms/gravityforms.php(6563): apply_filters('gfexcel_field_d...', false, Object(GF_Field_HTML), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    #3 /home/easycdlonline/public_html/forms/wp-content/plugins/gf-entries-in-excel/src/Repository/FieldsRepository.php(132): gf_apply_filters('gfexcel_field_d...', false, Object(GF_Field_HTML))
    #4 [internal function]: GFExcel\Repository\FieldsRepository::GFExcel\Repository\{closure}(Object(GF_Field_HTML))
    #5 /home/easycdlonline/public_

    Here is the code I am using form # is 3 and one field to hide is field ID 1

    add_filter('gfexcel_field_disable', function (bool $disabled, \GF_Field $field) {
        if ($field->formId == 3 && $field->id == 1){
            return true;
        }
    
        return $disabled;
    });

    any thoughts? and can I use an array to hide several fields?

    Thank You
    DeLoy Wilkins

    Thread Starter avidkayaker908

    (@avidkayaker908)

    Hello,
    Since I cannot get the fields to save. Can you suggest a bit of code to hide said fields?
    I used the code from your direction to hide the meta fields already.
    I have some experience so just the code where I can put in my fields would be great.

    Thank you for your time!

    DeLoy Wilkins

    Thread Starter avidkayaker908

    (@avidkayaker908)

    Thank you very much for the quick feedback. Unfortunately that fix did not work. I disabled all plugins except the gravity forms and the?Entries in excel plugin and still cannot save the settings.

    On the other note the code to change labels worked perfectly!!

    I can send a json of my form if you would like as well as a list of plugins. most are part of my gravity perks paid for package.

    Regards
    DeLoy Wilkins

Viewing 7 replies - 1 through 7 (of 7 total)