How to add multiple fields to Dynamic QR Code Widget

  • AWHHAI
    Asked on July 24, 2024 at 11:27 PM

    Hi Team,

    Good day!

    I would like to inquire if it is possible to encode two or more fields in the QR code of the Dynamic QR Code Widget. Specifically, I want to include the Name field and the Short Text field data in the generated QR code. Also, is it possible to create an expiration date on the generated QR code?

    How to add multiple fields to Dynamic QR Code Widget Image 1 Screenshot 20

  • Lara JotForm Support
    Replied on July 25, 2024 at 2:36 AM

    Hello AWHHAI,

    Thanks for reaching out to Jotform Support. Even though you can't add multiple field labels directly to encode, there's a workaround. You can create an extra Short Text field and pass the values from multiple fields to this Short Text field. Then, use the label of the Short Text field in the widget. It's easy to do. Let me walk you through it:

    1. In your Form Builder, click on Add Form Elements.
    2. Look for Short Text field and drag it to your form.
    3. Click the gear icon beside the field and enable Hide Field option under Advanced tab.

    How to add multiple fields to Dynamic QR Code Widget Image 1 Screenshot 40To copy values into the Combine Field, just enter a condition like the one shown in the screenshot below.

    How to add multiple fields to Dynamic QR Code Widget Image 2 Screenshot 51Now, add the field label of the Combined field into the Dynamic QR code widget:

    How to add multiple fields to Dynamic QR Code Widget Image 3 Screenshot 62Unfortunately, it is currently not possible to create an expiration date on the generated QR code using the Dynamic QR Code, but it will generate a new code every time there is a new submission.

    Give it a try and let us know how it goes.

  • AWHHAI
    Replied on July 25, 2024 at 3:40 AM

    Thank you for this input. How about the QR Code expiration date?

  • Myla JotForm Support
    Replied on July 25, 2024 at 3:59 AM

    Hello AWHHAI,

    For the expiration, please note that the QR code does not expire or change. As long as your form is active, this will work without any expiration date.

    Let us know if you have any other questions.

  • AWHHAI
    Replied on July 25, 2024 at 4:13 AM

    I Tried your suggestion but the output in the short text field is 0.

    How to add multiple fields to Dynamic QR Code Widget Image 1 Screenshot 20

  • AWHHAI
    Replied on July 25, 2024 at 4:14 AM
  • Lara JotForm Support
    Replied on July 25, 2024 at 4:26 AM

    Hello AWHHAI,

    Could you try editing the Update/Calculate Field condition and enter it as shown in the screenshot below:

    How to add multiple fields to Dynamic QR Code Widget Image 1 Screenshot 30Your result in your combined field should look like this:

    How to add multiple fields to Dynamic QR Code Widget Image 2 Screenshot 41 Note that I unhide the Combined Field for demonstration purposes only.

    Give it a try and let us know how it goes.

Your Answer