• Resolved jassimp

    (@jassimp)


    Hi

    I am looking for a solution to make the folder name inside the folder as a field value instead of entry ID.
    I found this solution. But how to apply this solution for different forms with different field values?

    Thanks

    • This topic was modified 3 years, 10 months ago by jassimp.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Bernhard Kau

    (@kau-boy)

    Hi @jassimp,

    I’ve also written a comment in our GIST on how to have different file names in different forms.

    Bernhard

    Thread Starter jassimp

    (@jassimp)

    Thank you @kau-boy for your prompt support
    Unfortunately, its not worked for me
    The folder name shows the entry ID

    Is there any fine tune for the code?

    Plugin Author Bernhard Kau

    (@kau-boy)

    Hi @jassimp,

    please find my answer in the GIST.

    Thread Starter jassimp

    (@jassimp)

    Thank you again @kau-boy for your fantastic support
    Now its working as expected

    could you please support me on the below also

    add_filter( 'bdfgf_download_filename', 'my_bdfgf_download_filename', 10, 3 );
    function my_bdfgf_download_filename( $filename, $form, $entry_ids ) {
    	// We append the current date/time to the end of the file name.
    	return $form['title'] . ' - ' . date_i18n( 'Y-m-d H:i:s' );
    }
    

    how to add one or more form field as file name instead of date?

    Plugin Author Torsten Händler

    (@shogathu)

    Hello @jassimp,

    we release a new version of the plugin. Now, it is possible to set the filter for a specific form ID.

    As for your question in the GIST, we added more examples.

    We hope this will help you.

    Thread Starter jassimp

    (@jassimp)

    Fantastic
    Thanks a lot

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

The topic ‘Filed data as folder name inside the zip folder for multipe forms’ is closed to new replies.