JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Dynamic QR Code widget: Not saving QR code image if value is generated by form calculation widget automaticallyAsked by CscProvidence on March 18, 2016 at 02:44 PM
It seems broken again.
If I clone the demo page, without making any changes. I get the QR code in preview. However, if I specify an other field, like "E-mail", which is on the demo form, the QR code disappear. If I restore to "Coupon code", the QR code does NOT reappear.
If I try to use in one of my forms, I get no QR code.
I thought I was doing something wrong, but the situation with the cloned demo page certainly shows otherwise ... I think. The other possibility I was thinking of is that some of my field labels are with a few French characters (ex: é, è, ...) But that does not seem the case. Short of my profile not being the default English.
Looking forward to enlightment as to what I am doing wrong.
It seems to work properly. Here's my test form: https://form.jotform.com/60775997217976.
Please note that the Dynamic QR Code widget generates the image only when the said field is filled out. In my test form, when you fill out the form the QR code is generated.
In the demo form of the widget, it seems like it uses the email field and the "random" math function to generate the QR code. The demo form is quite old and the form calculation widget seems to fail at that part, you can try re-opening the form calculation widget for the "Coupon Code" field then close it and hit the save button (assuming you are referring to the cloned form you have. Here's a screencast doing that change:
Here's my cloned form: https://form.jotform.com/60776198283973. The QR code is generated. Although, please note that it changes because the email field is not yet field out.
If you are still having problems on this, please let us know the form you are working on and the form field you want to associate the widget and we'll have it checked.
Thanks for the quick reply.
As I was trying to figure what I was doing wrong, not certain if you would reply that fast, I noticed the field was empty. Entering something made the QR code appear like magic. Doh !!
I'm glad to hear that you have managed to make the widget work in your end.
If I may also suggest, if you do not wish to use an input field as part of the QR code, and you just to have an automatically generated coupon code, then that is possible using the random() and floor() function. You can check this link for the math functions: https://www.jotform.com/help/267-Form-Calculation-Math-Function-Reference
So the code generated would be "COUPON-CODE######", with 6 digit numbers. This is how it looks like:
Here's my test form: https://form.jotform.com/60776198283973
However, I see that the QR code image is not being emailed and also not being saved in the actual submission when you used the Form Calculation widget as the only basis, the form calculation widget generates the coupon code without any relation to an input field, but the problem is that the Dynamic QR Code widget seems to be dependent on an actual input action to save the QR code image in the submission. I will need to forward this to our widget team to have it checked and fixed again. Apologies for the inconvenience.
Ok. Waiting for the follow up then.
We've fixed the bug, the QR code should be working properly - the image will be saved with your form submission.
Could you check? Thank you.
Thank you for following up.
I won't be able to test right away, but I will get to it ... hopefully early next week.