Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The donation form should reset when go back from the donation confirmation page. #2091

Closed
2 tasks done
emgk opened this issue Sep 19, 2017 · 4 comments
Closed
2 tasks done
Assignees

Comments

@emgk
Copy link
Contributor

emgk commented Sep 19, 2017

Issue Overview

When the donation has been completed and we go back to the donation form page by the back button of the browser then, you will see the last transaction details already populated on that donation form without JS affected.

Expected Behavior

When donor goes back from the donation confirmation page, the donation form should reset.

Current Behavior

When we go back to the donation form page from the donation confirmation page, the last transaction values will be populated there.

Possible Solution

The page which contains the donation form adding these below code snippet would help:
document.getElementById("<give-form-id>").reset(); or we can use jQuery code.

Steps to Reproduce (for bugs)

  1. Create donation form.
  2. Create donation using this donation form.
  3. Once you have redirected to the "Donation Confirmation" page hit browser back button.
  4. You will see the old values are already populated on this form which you have just used in the last transaction.

Todos

  • Tests
  • Documentation

Let me know if there is any further detailed explanation needed.

@DevinWalker
Copy link
Member

@emgk are you seeing this when logged in? I'm not experiencing this. Can you create a video to further describe?

@emgk
Copy link
Contributor Author

emgk commented Sep 20, 2017

@DevinWalker In my system(windows OS and Chrome) I am facing this issue for both logged-in or non-logged users. please check http://www.screencast.com/t/dx2XV8psuNr

@DevinWalker
Copy link
Member

@emgk thank you for the explanatory video. 👍 I'm slotting this into the post-2.0 milestone so we can address it.

@DevinWalker DevinWalker added this to the 2.0.1 milestone Sep 29, 2017
@ravinderk ravinderk modified the milestones: 2.0.1, 2.0.2 Jan 22, 2018
ravinderk added a commit that referenced this issue Jan 30, 2018
Issue #2091 - Reset Form Fields on clicking browser back button
@raftaar1191
Copy link
Contributor

raftaar1191 commented Jan 30, 2018

@DevinWalker @ravinderk
I would Like if we can add the Donation From once Page is load with Ajax. It would also be helpful once pages is catch as the Donation Form HTML is added by ajax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants