Gform_file_upload_markup Filter not working

Hello I add `add_filter( ‘gform_file_upload_markup’, ‘change_upload_markup’, 10, 4 );

function change_upload_markup( $file_upload_markup, $file_info, $form_id, $field_id ) {
return ‘’ . esc_html( $file_info[‘uploaded_filename’] ) . “ ”;
}` to the functions.php - but the filter is not working. The default markup is displayed, any ideas on this ? Best P.

There are two versions of that filter, the PHP version you are using only applies when the form fails validation and the form is redisplayed or on the entry detail page.

You need to use the JavaScript version of the filter if you want to make a change to the live markup.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.