Forums

Include Form Data In Email After User Activation

kko 15 Jan, 2020
Hi. I'm customizing the demo form for user registration. I want to send an email with the form data AFTER user activation. I copied the email action from the "submit" event to the "activate" event. The "activate" email gets sent, but all the data values are blank. The email action under the "submit" event sends correctly. Can I get some guidance? Thanks.
healyhatman 16 Jan, 2020
Unless you store them somewhere, those form values are only available in the event the form is submitted to. So you will have to store them in a table with the user id and retrieve them in the activation action.
kko 16 Jan, 2020
That is what I suspected. I am able to save the data to a table except for the user ID. All user_id values show 0. Please advise.

I am also having trouble with the retrieval set up. I have a Read Data action, but I do not understand all the settings that are needed to load this user's info into the email. Can you provide more specific instructions?
healyhatman 16 Jan, 2020
You need to use the user id from the save user action. {var:joomla_userblahblah.id}

In the activation step, get the ID from the activation action.
This topic is locked and no more replies can be posted.