Hi. I was wondering if the following is possible with wix code. I’m just starting so apologies if that’s really obvious.
I am creating a form so that users can submit a report on my website. However, I want this form with all the information to be emailed to someone as soon as they click submit and then the form and deletes itself from the database.
Is that possible? If yes, how?
From what I know, the email part is very possible, but it might be tricky to delete it from the database because in order to send an email with the entered information the email would have to be connected to the database. Why do you need the database to be deleted?
Because the forms are supposed to contain sensitive information. So, the forms need to be filled, emailed and then deleted. There’s no need to keep the database.
Would it be possible to get the information from the form, email, without collecting a database then? Would that help?
Alternatively the database could be deleted every 24h if that helps too.
Any thoughts?
Depending on what the sensitive information is, you can make it a password field. This would make the entered information show up as small ellipse and you can manually delete.
Abother option is to have a datahook where it deletes the items afterInsert. It might be a little complicated.
I thought it might be complicated. Any code that would make that work anyone?
Passwords wouldn’t be a good option. I just don’t need the database and would prefer to just delete it after sending it.