What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
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.
Why some urls in the embed code starts with slashes than http?Asked by dmayhan on October 15, 2015 at 03:50 PM
It is using the wrong prefix for url commands. For example:
The code at the top of my NEW forms now read:
When they should read:
Forms don't work from my website without the change. This url error is common throughout the embed code.
These urls that start with two slashes are called as protocol relative urls. They point to the address keeping the current protocol (http or https). Generally these urls are used when we have mixed content using http and https on the same webpage.
Since you have embedded the form on your webpage using source code, there might be a conflict with other scripts on your webpage. Please try embedding using iframe method and see if that works for you.
Let us know if the issue still persists. We will be happy to help.
Thanks for the quick response. Yep, got that, since these forms no longer work locally in our test environment. Looks like we'll just have to start publishing to the web host for testing. However, in order to facilitate payment processing directly to our client's payment gateway, we need to run a script at the time of form post.
After publishing the test form so that the protocol relative URLs work, it appears that there is no longer any field checking going on- e.g., "did the registrant enter his/her name?"
document.getElementById("[jotform ID, e.g., 52865861178900]").submit();
Here, we are using Jotform's form ID as the form object. What do you recommend?
You can try the Post Submission Data on Thank You page. You can create a custom URL Thank you page where you will process the scripts needed on your page. You can check this article for more information:
Do let us know if you need further assistance.
Thanks- didn't know about this feature! We'll look into it.
Please give a try with Thank you page and let us know if you need any further assistance. We will be happy to help.
Thank you for using JotForm!