• Resolved billyqureshi

    (@billyqureshi)


    Hello
    I use a plug in called Gravity Forms Encrypted Fields.
    This results in forms exported using GF Entries in Excel being encrypted.
    Is there a workaround for this?
    I imagine there wont be but I just thought id ask the questions!
    thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Doeke Norg

    (@doekenorg)

    Hi @billyqureshi Maybe there is. Could you provide a copy of the plugin? Please send it to [email protected]. ik take a look.

    Plugin Author Doeke Norg

    (@doekenorg)

    Fixed behind the scenes.

    For anyone else running into this issue, the following code should help you out.

    
    // Try do decrypt values for Excel.
    if (strpos($_SERVER['REQUEST_URI'], '/gf-entries-in-excel/') === 0) {
        add_filter('gform_get_input_value', static function ($value, $entry, $field) {
            // disable encrypting to show no encrypted values.
            $field->encryptField = false;
            return $value;
        }, 9, 3);
    
        // return the encrypted value instead of the masking
        add_filter('option_gfe_show_encryption', '__return_true');
    
        // decrypt if necessary.
        add_filter('gfexcel_export_field_value', static function ($value) {
            return gfef_decrypt($value);
        });
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Exporting encrypted forms’ is closed to new replies.