Hi @pheather
I hope you’re well today!
It’s a bug in the plugin and our Forminator Team is already aware of it and working on a fix. I don’t have an ETA though.
I have asked our developers if there would be a patch possible before that and I’m waiting for their response. Please keep an eye on this ticket and we’ll update you here soon with more information.
Best regards,
Adam
Thank you Adam, I look forward to a response from the developers
Hi @pheather
I just got feedback from our developers and they shared this code which should help for now, until the fix is included in the plugin:
<?php
add_filter( 'forminator_entry_meta_value_to_string', function( $string_value, $field_type, $meta_value, $allow_html, $truncate ) {
if ( 'upload' !== $field_type ) {
return $string_value;
}
$separator = ','; // Change this by your custom separator.
return str_ireplace( '<br/>', $separator, $string_value );
}, 10, 5 );
It would replace the BR tag with a “separator” – in this case it’s a comma but you can replace it with space/blank or any other character in this line
$separator = ','; // Change this by your custom separator.
To apply it to the site, you would need to add it as Must Use plugin:
– create an empty file with a .php extension (e.g. “forminator-gsheet-uploads-separator.php”)
– copy and paste code into it
– save the file and upload it (using FTP or similar method) to the “/wp-content/mu-plugins” folder of your site’s WordPress install; if there’s no “mu-plugins” folder right in “wp-content”, just create an empty one first.
It should then work out of the box (though for new submissions – after the code is added).
Best regards,
Adam
Hello @pheather ,
We haven’t heard from you for some time now, so it looks like you don’t require our further assistance.
Feel free to re-open this ticket if needed.
Kind regards
Kasia