• Resolved pheather

    (@pheather)


    We are using forminator to upload to sheets then taking the information from sheets into zap. When forminator uploads multiple files to sheets it’s puts a “<br/> between the files, when zap pulls this, it nullifies it, therefore pulling in none of the files. How can we get forminator to stop creating this code in google sheets so zap and read the multiple file links?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    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

    Thread Starter pheather

    (@pheather)

    Thank you Adam, I look forward to a response from the developers

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    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

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Forminator uploading multiple files to google sheets’ is closed to new replies.