Customised upload path for 2 forms

Home Forums Quform WordPress Customised upload path for 2 forms

This topic is: not resolved
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #9344
    Juon
    Participant

    Hi there!

    I’ve got one form where I customised the upload path with some instructions I found online – by editing my funktions.php. Everything works perfect!

    ***

    function mytheme_override_upload_path($path, $element)
    {
    $Username = $element->getForm()->getValue(‘IPHORM-ID’);

    return “newpath/$Username/”;
    }
    add_filter(‘iphorm_upload_path_2’, ‘mytheme_override_upload_path’, 10, 2);

    ***

    Now I have the problem that we need another form with the same functions – upload path via IPHORM-ID.
    How do I put that in my functions.php?

    Help would be veryyyyy nice.

    Tanks in advance
    Cheers

    J.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy