Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Korveld

    (@teidar)

    At the moment i’ve temporary fixed this by adding js code

    But there must be more elegant way to fix this problem

    jQuery(document).ready(function($) {
    
      setTimeout(function () {
        document.addEventListener('wpcf7mailsent', function (event) {
          setTimeout(function () {
            if ($('.download-lnk-pdf').length) {
              var pdfText = $('.download-lnk-pdf').text().replace(new RegExp('\\+', 'g'), ' ')
              $('.download-lnk-pdf').text(pdfText)
            }
          }, 300)
        }, false);
      }, 0)
    
    })
    Thread Starter Korveld

    (@teidar)

    I’ve fixed this by editing source code in the file wp-content/plugins/generate-pdf-using-contact-form-7/assets/js/cf7-pdf-generation-public.js

    var pdf_download_link_txt_new = pdf_download_link_txt.replace(new RegExp('\\+', 'g'), ' ');

    I’ve added new variable where i deleting all “+” signs. Somehow this string saves in cookies with plus signs.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plus “+” signs in the download file link text’ is closed to new replies.