Validating Data in a Scanned QR Code

  • Profile Image
    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?


  • Profile Image
    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.


    The QR Code Reader widget works with conditions.


    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.


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

  • Profile Image
    Answered on December 21, 2020 at 08:10 PM

    Thank you for your help.

    Here is a link to my form.

    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"?



  • Profile Image
    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:

    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.