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

    (@doekenorg)

    Hi @mary1739,

    Thanks for your question. Just so there is no noise in the communication; you are referring to an upload field, and you want the output in the excel return just the end of the path. And not clickable.

    Please let me know. I’ll see if I can whip something up.

    Thread Starter mary1739

    (@mary1739)

    yes thats exactly what i need, thanks for asking, english is not my langage ??

    • This reply was modified 3 years, 3 months ago by mary1739.
    Plugin Author Doeke Norg

    (@doekenorg)

    Hi @mary1739, no problem; it’s not mine either ??

    If you add this to your functions.php it should do what you want. Hope this helps you out.

    /**
     * Remove the form upload path from the download path.
     */
    add_filter('gfexcel_field_value', function ($value, $entry, GF_Field $field) {
        if (!$field instanceof \GF_Field_FileUpload) {
            return $value;
        }
        
        return str_replace(\GFFormsModel::get_upload_url($entry['form_id']), '', $value);
    }, 10, 3);
    Thread Starter mary1739

    (@mary1739)

    Awesome, thank you !
    its working fine

    • This reply was modified 3 years, 3 months ago by mary1739.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide complete url path upload folder’ is closed to new replies.