Page 1 of 1

insert qr code into edit form ? ? ?

Posted: Fri Nov 19, 2021 9:59 pm
by honza1965
please I nicely need to enter the QR code anywhere in the form . . .

in an external html file (see below) it works

Thank you for the inspiration Honza

=================================================================


<!DOCTYPE html>
<html>
<head>
<title>QR Code Generate</title>

<!-- (A) LOAD QRCODEJS LIBRARY -->
<!-- https://cdnjs.com/libraries/qrcodejs -->
<!-- https://github.com/davidshimjs/qrcodejs -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/ ... "></script>
</head>
<body>
<!-- (B) GENERATE QR CODE HERE -->
<div id="qrcode"></div>

<!-- (C) CREATE QR CODE ON PAGE LOAD -->
<script>
var qrcode = new QRCode(document.getElementById("qrcode"), "https://code-boxx.com/");
</script>
</body>
</html>

Re: insert qr code into edit form ? ? ?

Posted: Sat Nov 20, 2021 12:06 am
by pmjd
Add a new html object to your form, in the html section enter just the following code, it seems to work for me.

Code: Select all

<div id="qrcode"></div>

<!-- (C) CREATE QR CODE ON PAGE LOAD -->
<script>
var qrcode = new QRCode(document.getElementById("qrcode"), "https://code-boxx.com/");
</script>
If it's not the right ocde you may need to add the

Code: Select all

<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"></script>
to the nuBuilder Header

Re: insert qr code into edit form ? ? ?

Posted: Sat Nov 20, 2021 1:32 am
by honza1965
on my screen - only gray space

Re: insert qr code into edit form ? ? ?

Posted: Sat Nov 20, 2021 1:36 am
by honza1965
the developer console captured this message

Re: insert qr code into edit form ? ? ?

Posted: Sat Nov 20, 2021 7:52 am
by kev1n
In a HTML object:

Code: Select all

<div id="qrcode"></div>
<script>
var qrcode = new QRCode(document.getElementById("qrcode"), "https://code-boxx.com/");
</script>
In (Setup->) Header:
header.jpg
Output:
output.jpg

Re: insert qr code into edit form ? ? ?

Posted: Sat Nov 20, 2021 12:03 pm
by miasoft
How to insert this (generated) qr-code in Detail section of Report?

Re: insert qr code into edit form ? ? ?

Posted: Sat Nov 20, 2021 3:00 pm
by honza1965
Hooray. . . Solved ! ! ! . . . I had a bug in the script position in "Header". . . . :-) Thank you very much Kevin