GravityExport field: FileUploadField

If you want to disable the upload fields from the export, you can disable this via a setting on the General Settings page.

Of course, nowadays, you can just disable specific fields on the form settings, but it’s still a nice feature to have.

Filters

gfexcel_field_fileuploads_enabled_{form_id}

Makes it possible to disable/enable a field. Just return a boolean, or use the WordPress __return_false  or __return_true  functions.

Example

/**
 * Disables all file upload fields from being included in GravityExport exports.
 *
 * By returning false for this filter, any fields of type "file upload" will be excluded
 * from the exported file.
 *
 * @since 1.0.0
 *
 * @return bool False to disable file upload fields from export.
 */
add_filter( 'gfexcel_field_fileuploads_enabled', '__return_false' );
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us