method to generate a QR code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sapyantuk
    Senior Member
    • Oct 2020
    • 265

    method to generate a QR code

    Hello,

    I would like to inquire if there is a method to generate a QR code within Espo CRM using data. Specifically, I have a text stored in a field, and I would like to generate a QR code based on that data. Could you please provide guidance on how to accomplish this?

    Thank you in advance.
  • lazovic
    Super Moderator
    • Jan 2022
    • 809

    #2
    Hi sapyantuk,

    This part of documentation may be useful for you: https://docs.espocrm.com/administration/fields/#barcode.

    Comment

    • sapyantuk
      Senior Member
      • Oct 2020
      • 265

      #3
      lazovic

      00020101021226560011fonepay.com0606251650071622220 200025591810907580108252048931530352454071500.0058 02NP5943Advance Accounting & Tax Solution Pvt. Ltd.6012Kathmandu MP62370107580108207062559210812construction63044ce 5

      this is the code . when add this text in qr code field. qr image is blank.
      it cant generate

      Comment

      • lazovic
        Super Moderator
        • Jan 2022
        • 809

        #4
        sapyantuk,

        I am attaching screenshots with the field settings and showing that everything is working correctly:

        Click image for larger version

Name:	image.png
Views:	271
Size:	31.1 KB
ID:	94392
        Click image for larger version

Name:	image.png
Views:	295
Size:	8.3 KB
ID:	94390
        Click image for larger version

Name:	image.png
Views:	273
Size:	4.0 KB
ID:	94391

        Check the error logs of your instance. Perhaps there is some information about this issue.​​

        Comment

        • sapyantuk
          Senior Member
          • Oct 2020
          • 265

          #5
          lazovic

          00020101021226560011fonepay.com0606251650071622220 200025591810907580178052048931530352454071500.0058 02NP5943Advance Accounting & Tax Solution Pvt. Ltd.6012Kathmandu MP62290107580178007062559210804busy630401d7

          Comment

          • sapyantuk
            Senior Member
            • Oct 2020
            • 265

            #6
            lazovic



            I have added the same code here also. qr is not generating

            Comment

            • esforim
              Active Community Member
              • Jan 2020
              • 2204

              #7
              I test it on the demo, something wrong with the rendering. It showing stripe image for me too,

              Comment

              • sapyantuk
                Senior Member
                • Oct 2020
                • 265

                #8
                esforim Exactly. i also tested in 3 instance , Something is wrong with Rendering

                Comment

                • lazovic
                  Super Moderator
                  • Jan 2022
                  • 809

                  #9
                  sapyantuk,

                  For now, it is recommended to use shorter values for this field.

                  Comment

                  • sapyantuk
                    Senior Member
                    • Oct 2020
                    • 265

                    #10
                    lazovic but i need to generate Qr with similar length value.

                    Comment

                    • lazovic
                      Super Moderator
                      • Jan 2022
                      • 809

                      #11
                      sapyantuk,

                      Try in client/src/views/fields/barcode.js file to change line 135 (correctLevel : QRCode.CorrectLevel.H,) to correctLevel : QRCode.CorrectLevel.L, line. Then make a rebuild and check the operation of your QR Code field.

                      Comment

                      Working...