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.
Maximum characters validation fails when form is embeddedAsked by JORGE_GARCIA on November 20, 2015 at 01:14 PM
I have prepared a form with limited key strokes and characters per line. I have incorporated this limitation 'a posteriori' on my site with JS. It works perfectly. Also I have on my form a preview option for the user to change something before shipping. As the edition of the submission, before final shipment, is in JotForm and not in my site, the limitation disappears and the user can write to their hearts content. Any solution? Thanks in advance.
maximum and key lines
I checked your page and it looks like you have embedded your form using the full source code. Doing so allowed your form to fully interact with the rest of your page. This may cause some unintended conflicts with scripts already running in your page, causing the validation to fail.
Try replacing your current embed code with the iFrame code:
This will insulate your form from the rest of your page and allow it to function the same as it does when not embedded.
If that still does not allow for the validation to work, let us know and we will be happy to have another look.
This is the result of his proposal (iFrame). The form is cut off.
I continue in the next message.
The source code is the only one that works properly. In it, I can embed the JS function to control the key strokes and characters. As I said in my previous message the Preview option I have installed works with submission of JotForm
and with conditionals, it not sent to the email address until the option of sending is pressed.
Look again my form
You can set a limit to the number of characters allowed in a Text field:
Though there is no way to add your script to the form itself.