Validating Data in a Scanned QR Code

  • matthew.palmer
    Asked on December 21, 2020 at 4:29 PM

    I would like the user of the form to be able to scan QR codes to repond to questions.

    I will provide the QR codes that will be scanned.

    I want to make sure that only the QR codes I provide can be scanned.

    Is there a simple way to do this? Can it be done with a mask? IE all my QR codes start with a unique set of numbers and it gives an error if the QR code that is scanned does not begin with that set of numbers?

    Thanks!

  • Mike_G JotForm Support
    Replied on December 21, 2020 at 6:32 PM

    To my understanding, you would like to use your form to scan QR codes and if the codes scanned does not start with a specific set of number you would like to show an error or prevent submission.

    If that is the case, you can use our QR Code Reader widget.

    1608592969 5fe12e4982b3c zt201221 181910 Screenshot 10

    The QR Code Reader widget works with conditions.

    1608593038 5fe12e8e83826 zt201221 182102 Screenshot 21

    You can use the value the QR Code Reader widget scans to trigger conditions that you can set up on the form.

    Smart Forms: Conditional Logic for Online Forms

    You can use the Paragraph element on the form to create an error message that will be shown based on the scanned code.

    1608593255 5fe12f674f02b zt201221 182716 Screenshot 32

    Please give it a try and let us know if you need any further assistance.

  • matthew.palmer
    Replied on December 21, 2020 at 8:10 PM

    Thank you for your help.

    Here is a link to my form.

    https://form.jotform.com/203556418386058


    How do I make it so that it does not default to showing the error message? I have the error message show if the QR code Widget does not start with "OF"... Its seems like when I get to that page there is nothing in the QR code widget field and it shows the Error Message.


    Also, if the error message is displayed, is it possible to hide the "next button"?


    Thanks!


    MP

  • Mike_G JotForm Support
    Replied on December 21, 2020 at 9:12 PM

    I have moved your new concern to a new ticket considering it is about a new topic.

    Here's the link to the new ticket: https://www.jotform.com/answers/2780280

    We will be responding to that ticket shortly. If you have any follow-up questions about the new topic, please refer to that ticket to avoid confusion.