Forums

Dynamic To email in Chronoforms

nicholashg 05 Jan, 2011
This must be fairly standard but I'm stumped.

From a list of unpublished membership applications in the front end of the site, I am allowing admin reviewers to link via Chronoconnectivity to each application in order to accept or reject. They 'accept' simply by changing the published status of the applicant. This much works well.

What I can't get working are the accept/reject emails that I would like to semi-automate and send from the Chronoconnectivity linked form (the form that the reviewer appraises). Acceptance would be a standard email (click and send) but rejection would require editing of the message.

Setting aside the two 'submit' alternatives which I appreciate aren't really a Chronoforms issue, how do I pull the applicant's email address from their application into the 'Dynamic To' field for either of these emails? Simply entering 'email' (the name of the applicant's email field) doesn't work for reasons which I hope will be obvious to you but not to me. I should add that the email address is not necessarily the same as the applicant's registered user email address, so this isn't a getuser thing.

I've tried in vain - any guidance would be appreciated.
GreyHead 06 Jan, 2011
Hi nicholashg,

I assume that you have the applicant's User ID stored with the application info. If that is so then you can get their email with
<?php
$applicant_id = ???;
$applicant =& JFactory::getUser($applicant_id);
JRequest::setVar('applicant_email', $applicant->email);
?>


Bob
nicholashg 14 Jan, 2011
Thanks very much. I was implementing your suggestion when several hard drives gave up the ghost and I lost my site. Hence the delay. I've been working with computers for many years but this was a 'perfect storm'. Fortunately I had saved my form scripts to a stick.

The following is a bit bloggy but may interest some.

I've ignored Max's advice and installed the first release of Joomla 1.6, mainly to handle quite complicated ACLs. I watched a lengthy video on this subject by one of the Joomla developers and am none the wiser.

In looking around for a native 1.6 replacement for Chronoforms, I purchased a Breezing Forms subscription. Breezing Forms has some neat (but buggy) ways to present forms visually but that's where the plus points seem to end. I only played around for a few hours so perhaps I'm being unfair.

As yet I have failed to install the Chronoconnectivity equivalent (xForms Display Data) but the ticket I raised remains unanswered and I think I'll stop trying. The main thing that has stopped me is the realisation that (unlike Chronoforms), BreezingForms appears not to store data to discreet tables. I would have thought that control over where and how data is stored is a pretty fundamental requirement.

As my site was shaping up to be 90% Chronoforms/Chronoconnectivity, I'll sit on my thumbs and wait for the J1.6 compatible version. I wonder how long I'll be sitting.

No reply necessary to this, unless anyone feels like commenting or sharing a similar experience.

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