How to generate QR Code from URL which use value from the form?

  • Profile Image
    kishar
    Asked on October 31, 2016 at 02:42 AM

    Hello Jotform Team

    I am building a form that let people RSVP to an event , sends and email confirmation along with a QR Code and when the users will confirm at the front desk by scanning that QR Code , which has a generated Unique Number , along with personal information and submit via Google Forms. Then we would check via Google Spreadsheet to see if the user has already registered or not.

    Most of the above methods work just fine , but I having problems with generating QR Code from a google form's submission URL which looks like this.

    https://docs.google.com/forms/d/e/*spreadsheetkey*/formResponse?entry.548077078=Pre-Register&entry.1789912358={code}&entry.753152290={input5}&submit=Submit#"

    and will be converted to a QR Code via Google's Chart API which the final URL would like this

    https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=https://docs.google.com/forms/d/e/*spreadsheetkey*/formResponse?entry.548077078=Pre-Register&entry.1789912358={code}&entry.753152290={input5}&submit=Submit#"

     

    I think I found the problem is the "blue &" , it ends the expression and couldn't process the characters after the blue &.

     

    The QRCode was generated but no value from the red fonts was there.

     

    If there's another workaround which can do the process of the following , it would gladly know it too.  

     

  • Profile Image
    seth
    Answered on October 31, 2016 at 07:40 AM

    Hello,

    Your issue is related to API you are using. I did a rough search about it. Here are my suggestions for you:

    - The characters are suitable to use with the API. They state that UTF-8 is suitable to use with the API. Here is the list for characters of UTF-8:

    http://www.fileformat.info/info/charset/UTF-8/list.htm

    - Try to use POST option that Google suggests. Here is the API page:

    https://developers.google.com/chart/infographics/docs/qr_codes

    Please note that there is a warning on the page that states 'this API is deprecated'.

     

    In addition to that, try using our QR code generator widget to generate your QR code. Dynamic QR code generator could take a field value on a form and turns it into a QR code.

    https://widgets.jotform.com/widget/dynamic_qr_code

    You can insert a unique ID to your form and check this ID afterwards.

    https://www.jotform.com/help/79-How-to-Add-Custom-Unique-IDs-to-your-Form-Submissions

    If you need further assistance please contact us again. 

    Regards.