Well you could probably combine my Maximum Posts Reached plugin
...which is already doing a fantastic job…
with my Redirect plugin so that once a person has posted an entry they are re-directed to what would essentially be a third page or you could direct them in other ways too but your problem more stems from the fact that people are using the back button.
Exactly.
As this isn’t a problem with anything that ExpressionEngine does and just a browser specific issue then the only way I can think of stopping this is if you place some javascript on the page that shows after they have posted their entry
I thought about using JS to insert a “Plan created” message on the page, but IIRC, when you leave and hit Back, the updated content disappears. :/
so that you kill off the history on the back button so that they can’t go back again. Of course this is not a preferred method as you would effectively be wiping out peoples path on your site, something which I know a lot of people don’t like.
But that’s worth looking at. I’ve never tried that; will see if I can just kill that single step.
I think either another page to redirect to so that if they do click back they at least won’t land directly on the form again (although in theory they may press the back button twice or more to get back there anyway) or better instructions on the page to tell people not to do this kind of thing.
I think you may have hit on it… The return= page would have the instructions saying “Your plan has been created! Please don’t use your Back button to edit your plan. To edit, click here.”
I actually just tried on an SAEF with my Maximum Posts Reached plugin and created an entry and then hit the back button but I didn’t get two entries so not too sure what the problem is on your site with that because the most I would have thought it would do is maybe auto-fill the fields for you but as you haven’t submitted the form again I wouldn’t have thought that you would get a second duplicate entry.
The problem situation is this—The user hits Save (or Enter if they’re on a nasty browser) and the post is created. Then they decide they want to edit their plan, so they hit Back. This returns them to the SAEF. When they’re finished “editing”, they hit “Save” and a new entry is created… Except they think they only edited their original plan.
Which brings me to another helpful thought—I’ll change the Save button to say “Create my new Plan” and add some other language that makes it clear they’re creating something new.
Don’t know if any of that helps at all though?
Sure did!
Thanks!