- dmayhanAsked 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.
- JotForm SupportKiranAnswered on October 15, 2015 at 06:46 PM
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.
- dmayhanAnswered on October 15, 2015 at 09:19 PM
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?
- JotForm SupportChriistianAnswered on October 16, 2015 at 04:36 AM
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.
- dmayhanAnswered on October 16, 2015 at 12:02 PM
Thanks- didn't know about this feature! We'll look into it.
- JotForm SupportKiranAnswered on October 16, 2015 at 12:24 PM
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!