Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display QR Code in e-mail after submit contact form #289

Open
liveweb22 opened this issue Jan 26, 2023 · 0 comments
Open

Display QR Code in e-mail after submit contact form #289

liveweb22 opened this issue Jan 26, 2023 · 0 comments

Comments

@liveweb22
Copy link

I also have a problem with generating a qr code. I use Contact Form 7 together with Flamingo to generate a QR code. This QR code is generated in the browser, but I don't know how to make it appear in e-mail.

My code:

<script src="https://cdn.jsdelivr.net/gh/davidshimjs/qrcodejs@master/qrcode.js"></script> <script type="text/javascript"> var wpcf7Elm = document.querySelector( '.wpcf7' ); wpcf7Elm.addEventListener( 'wpcf7mailsent', function( event ) { setTimeout(function() { var respElem= document.querySelector( '.wpcf7-response-output' ); var resp = respElem.innerHTML.split("%%"); respElem.innerHTML = resp[0]; new QRCode(document.getElementById("qrcode"), resp[1] ); }, 100); }, false ); </script>

In 3rd tab i have: %%[_date]-[_serial_number]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant