After submitting the form by clicking the submit button if I click the browser back button the form entries are displayed. I need to display "session expired" message on clicking back button after submitting the form. Is there any event for it?
Forums
Browser back button displays previous entries
Hi srivi281992,
No there isn't - that's a browser feature I think, not under server control. What is actually the problem here?
Bob
No there isn't - that's a browser feature I think, not under server control. What is actually the problem here?
Bob
After filling the details and submitting the form ,the form reloads. But when I click the back button in the browser the previous values are displayed in the form. You can view the form in this link http://transsyssolutions1.oswebware.com/ The "get-in-touch "form.We have seen in many registration sites where after submitting the form when we click the browser back button it doesn't show the previous values. Instead a fresh form is loaded with no values or a session expired message. What I need is after submitting the form when the browser back button is clicked the form fields should be empty. Is there a way for it in chronoforms?
I saw the post. I paste this code
$(window).bind("pageshow", function() {
var form = $('form');
form[0].reset();
});
in "Load Javascript" event and placed it under "onSubmit" but it doesn't work. Where should I add the code?
Hi srivi281992,
I guess it needs to run when the form loads so should be in On Load?
Bob
I guess it needs to run when the form loads so should be in On Load?
Bob
I tried adding in the onLoad section. But the form values are present on clicking back button in browser. Any other suggestions?
This topic is locked and no more replies can be posted.