- leroy120Asked on May 07, 2013 at 01:29 PM
Hello. I realise that this is probably Wix's fault, but is there a line of code I can add to my form so that it refreshes itself automatically after clicking submit, even if redirected to another page? The form works fine, but for some reason (the way wix sites work) the form does not refresh! Even if i create a thank message or redirect to a thank you page, when i return to the form it is either blank or still shows a thank you message. I think it has something to do with the page transitions, but any help would be greatly appreciated.
This is my jotform code.
- bumgoreAnswered on May 07, 2013 at 01:58 PM
Have you tried changing the thank you page to a custom URL? You can direct it back to your form. That way after you submit instead of going to a thank you page it will direct back to the form with blank fields.
You can change the thank you page by going to setup and embed then click on "Thank you" on the pop up window select custom URL and put in your form's URL in the field.
- sidharth_kchAnswered on May 07, 2013 at 02:17 PM
- leroy120Answered on May 07, 2013 at 06:40 PM
i've used the iFrame method as advised and there is still no change. This time i have included a custom thank you url which works fine, as does the form itself, but when i navigate back to the form it has not reloaded and the page is still blank! As I said earlier, I do believe this is because of how wix web sites work with page transitions etc, but i'm sure there must be a solution! is there a line of code that will force the form to refresh upon clicking submit? thank you for your help
- leroy120Answered on May 07, 2013 at 06:43 PM
hi bumgore. yes i have tried your suggestion of make the thank you url the same page as the form, but this also does not work! thanks anyway
- JotForm SupportEltonCrisAnswered on May 07, 2013 at 09:33 PM
Unfortunately that's how Wix Template works and there's nothing much we can do about it. It's most probably due to the flash based site you are using. There's a similar issue reported about this recently and here's the following workaround I've provided to him.
I've suggested to use custom PHP script that redirects back to your page so the form gets loaded again. You can use the following php code on the link provided. Change the URL part to your actual Thank you URL.
Copy that code, paste it to notepad. Change the web URL to your website and save it as php file e.g. redirect.php. Upload the php file to your server then set it as your form's Custom Thank you URL. You can also use free hosting sites like awardspace.com and 000webhost.com
Hope this helps. Thank you!
- sourapplerepairAnswered on August 14, 2013 at 10:43 PM
i am trying to achieve this but it seems I have trouble trying to figure out the address of my uploaded file to 000webhost on my free plan, do you know how to get url to the redirect script i just made? or is there any other host that is a bit more straight forward for script hosting?
- sourapplerepairAnswered on August 14, 2013 at 10:56 PM
and is since you guys know your stuff so well, is there any way to achieve this with an added middle step of forcing a fresh cache load through the php script? we seem to have issues with our forms only properly refreshing when CTRL+F5 is used. f5 and regular refreshes or revisits often result in the form being blank.
- JotForm SupportEltonCrisAnswered on August 14, 2013 at 11:12 PM
The redirection would be fine since it would refresh the browser by revisiting the page.
000webhost is a good one. They have their own tutorial on how to upload files to your host using FTP client. http://www.000webhost.com/forum/faq/19132-tutorial-how-ftp-000webhost-servers.html. You can also do it directly in your cpanel: http://www.000webhost.com/faq.php?ID=7
We would also require you to please open a new thread about this problem so we can assist you better. We always require this to avoid confusions from the thread owner and others.
- sourapplerepairAnswered on August 14, 2013 at 11:36 PM
ok thanks. i'll do if the guides you provided do not help :)
- khrisellAnswered on August 15, 2013 at 12:43 AM
In behalf of Elton, You are most welcome.
Feel free to contact us anytime if you have further questions or need any assistance.
Thank you for using JotForm.
- OsuneAnswered on August 27, 2013 at 03:26 AM
I am having a very similar issue and was able to resolve it using this thread. Thank you very much for that. A follow up question I have is that this issue only seems to be happening in Chrome but works correctly in other browsers. So is there a way that the php code can contain logic that uses the cached copy if the browser is not Chrome, and does a full refresh if the browser is = Chrome?
Any help that you can provide on this matter will be greatly appreciated.
- pinoytechAnswered on August 27, 2013 at 05:36 AM
Request you to please open/create a separate thread with regards on your query for further assistance.