Hey Frosty,
Thanks for the login info. It's all set up now.
There's two final things you'll need to do:
1. Remove the "Delete this registration?" question from the login form. Unfortunately we can't use this mechanism to delete submissions right from the login form. The "Delete Account" field has to appear in the page AFTER they log in.
2. Add a hidden field to your form (I was editing form ID#1,):
<input type="hidden" name="delete_account_field" value="No" />
I tested it out and everything seemed to work fine. You can obviously tweak it from here: I created a new View based on the "All Submissions" View, except that it contains the additional "Delete Account" field. That's the View that the user sees when they log in. If they change it to "Yes", their account is deleted and they're redirected to that URL you specified.
Two things cropped up while I was adding it:
1. In the Submission Accounts set up for that particular form (form ID #1), the "Username" and "Email" field had to be mapped to the same form field (Email).
2. The form HAS to be set to "online" in order for the users to be able to log in and edit their submission. This is currently a requirement of the Submission Accounts module.
I hope this is all making somewhat sense...! Try creating a new submission, logging in with it and seeing how it behaves once you click "Yes" for the Delete Account field. Hopefully it was what you had in mind!
Let me know of any questions!
- Ben
Thanks for the login info. It's all set up now.
There's two final things you'll need to do:
1. Remove the "Delete this registration?" question from the login form. Unfortunately we can't use this mechanism to delete submissions right from the login form. The "Delete Account" field has to appear in the page AFTER they log in.
2. Add a hidden field to your form (I was editing form ID#1,):
<input type="hidden" name="delete_account_field" value="No" />
I tested it out and everything seemed to work fine. You can obviously tweak it from here: I created a new View based on the "All Submissions" View, except that it contains the additional "Delete Account" field. That's the View that the user sees when they log in. If they change it to "Yes", their account is deleted and they're redirected to that URL you specified.
Two things cropped up while I was adding it:
1. In the Submission Accounts set up for that particular form (form ID #1), the "Username" and "Email" field had to be mapped to the same form field (Email).
2. The form HAS to be set to "online" in order for the users to be able to log in and edit their submission. This is currently a requirement of the Submission Accounts module.
I hope this is all making somewhat sense...! Try creating a new submission, logging in with it and seeing how it behaves once you click "Yes" for the Delete Account field. Hopefully it was what you had in mind!
Let me know of any questions!
- Ben