-
jpftwAsked on April 12, 2015 at 10:03 PM
Hi,
I have copied the source code for a form into a Confluence wiki. When I press submit the URL goes to https://submit.jotform.us/formscentral/ and I receive "File not found" on the page.
Thanks,
Jared
-
BJoannaReplied on April 13, 2015 at 4:38 AM
Are you trying to embed jotform on your website? Please read this articles to find out how to embed your form to your website and what embed option you can use.
http://www.jotform.com/help/34-Adding-a-Form-to-a-Web-Page
http://www.jotform.com/help/67-Which-Form-Embed-Code-Should-I-Use
Can you please provide us URL of your website?
Looking forward to your reply.
-
jpftwReplied on April 19, 2015 at 1:04 AM
The website is an internal wiki. You would need to login to view it, which will make troubleshooting a little difficult. The only way I can get the form to show on the wiki is by embedding the source code. The link doesn't show at all and the iFrame only shows the jotform home page.
-
BJoannaReplied on April 19, 2015 at 3:24 AM
Considering that we do not have access to your internal wiki web site we can not see what is exactly happening. We can just suggest and advice you how to embed your form properly.
In addition to two links that I have already provided, I will explain in details how to embed you form in iFrame.
1. Select form you want to embed inside of My Forms and click on Edit Form.
2. Inside of your Form Builder select Embed Form option and then select iFrame option.
3. Copy the code inside of Embed Form Wizard.
4. Paste it inside of your internal wiki.
In case that you still have some problems please provide us a screenshot so we can take a closer look.
Hope this will help.
-
jpftwReplied on April 20, 2015 at 3:55 PM
I took some screenshots of trying with embedding using HTML and IFrame.
When I embed the script into the wiki using it's HTML macro, the form shows up on the page.
When I press the Submit button, this is what is returned:
When I paste the IFrame script into the wiki using the IFrame macro:
This is what is I see when I save it:
I also tried adding the IFrame script into the HTML macro:
And see a jotform page when I save it:
Hope this helps. Let me know if anything needs clarification.
Thanks
-
BJoannaReplied on April 20, 2015 at 4:14 PM
I cloned and tested your form and I noticed that your form is using Custom URL which means that after submitting user will be redirected to that custom URL.
You are using this link in custom URL
https://wiki.corp.adobe.com/display/TDM/Service+Impact+Confirmation and this link is currently unavailable.
I would suggest to you to use different custom link for redirecting user because probably you are getting error after submitting because this custom URL is unavailable.
Also you can redirect user to JotForm Thank you page.
To find out how to set Thank you page you can read following article:
http://www.jotform.com/help/211-Setting-Up-the-Thank-You-Page
Hope this will help. Let us know if you need further assistance.
-
jpftwReplied on April 20, 2015 at 8:36 PM
I changed it to the default thank you page, but still see the 'file not found' page.
-
Ashwin JotForm SupportReplied on April 21, 2015 at 1:08 AM
Hello jpftw,
I did check your form and did not find any issue with that. It should display the default thank you message. I am not sure what is causing this issue as user is redirected to the thank you message or thank you page from the server after the submissions.
I did test your form with its direct URL by sending a test submission and it seems to work as expected. Please check the screenshot below:
Is there any way we can take a look at your wiki page where you have embedded your form? I suspect there must be some issue there.
We will wait for your response.
Thank you!
-
jpftwReplied on April 21, 2015 at 8:59 PM
We can set up a time to do screen share via Connect. Let me know if that's feasible.
Thanks
-
CharlieReplied on April 22, 2015 at 12:24 AM
Hi,
Unfortunately, real-time screen sharing is not possible but you can have it recorded and post it here. I assume that the problem is still that the form shows "File Not Found" when submitted, is that correct? Could you try re-embedding the iFrame code without the <script> tag on it in your HTML macro.
Here's an example of my iFrame code copied and pasted here:
Before:
<iframe id="JotFormIFrame" onDISABLEDload="window.parent.scrollTo(0,0)" allowtransparency="true" src="https://secure.jotformpro.com/form/51110391478956" frameborder="0" style="width:100%; height:2988px; border:none;" scrolling="no"></iframe>
<script type="text/javascript">window.handleIFrameMessage = function(e) {var args = e.data.split(":");var iframe = document.getElementById("JotFormIFrame");if (!iframe)return;switch (args[0]) {case "scrollIntoView":iframe.scrollIntoView();break;case "setHeight":iframe.style.height = args[1] + "px";break;case "collapseErrorPage":if (iframe.clientHeight > window.innerHeight) {iframe.style.height = window.innerHeight + "px";}break;case "reloadPage":window.location.reload();break;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>
After:
<iframe id="JotFormIFrame" onDISABLEDload="window.parent.scrollTo(0,0)" allowtransparency="true" src="https://secure.jotformpro.com/form/51110391478956" frameborder="0" style="width:100%; height:2988px; border:none;" scrolling="no"></iframe>
In short, we will just use the code wrapped in <iframe> tags and remove the <script> code included on it. Try embedding the edited iFrame in your HTML editors and see if that works.
I hope this helps.
Kind regards.