Forums

Setting Additional Fields After Email Verification

littlefyr 26 Jan, 2014
Good day all,

So I hope this a relatively simple process.

What I want to do is provide two email verification urls, one to indicated acceptance, and one to indicate rejection. Basically, I want to distinguish between someone who's forgotten to click the verification link and someone regretted filling out the form. Its not perfect but it will get me there. I also want to add a timestamp when the verification happens.

So I've already added some custom code that generates my own verification links and two separate events to handle things.

Now I would have been happy if I could just set the verification VALUE in the response action (hint hint), but I want to know if there is some way I can make all this happen without having to copy pretty much all the code from email_verification_response.php into a custom code action.

Thanks!
Adam
GreyHead 08 Feb, 2014
Hi littlefyr,

I'm not sure exactly how to do this but my first thought is to use the same URL for both cases but with an added parameter like &accept=yes in one case and &accept=no in the other.

Then you can use the same event for both, detect the accept parameter and update your DB records with the status and time. Then you can either pass the verification string to the Joomla! Verification action (you'd need to change the URL a bit, then redirect) or handle the verification in ChronoForms.

Bob
This topic is locked and no more replies can be posted.