Validating Data in a Scanned QR Code

  • Profile Image
    matthew.palmer
    Asked on December 21, 2020 at 04: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!

  • Profile Image
    Mike_G
    Answered on December 21, 2020 at 06: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

    The QR Code Reader widget works with conditions.

    1608593038_5fe12e8e83826_zt201221_182102

    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

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

  • Profile Image
    matthew.palmer
    Answered on December 21, 2020 at 08: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

  • Profile Image
    Mike_G
    Answered on December 21, 2020 at 09: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.