Forums

Link Joomla! username to a form

riaaneloff 31 May, 2010
Hi all...I've seen and used the dynamic fields in the email setup, and this is great. Yet, I've come across a functionality that I'm not sure how to:

My client has a form on their website, and once their website users have registered, they have the option of also completing a special form (via chronoengine, of course) to gain access to certain additional services from my client.

The form gets filled in, added to the database, and obviously emailed to my client's chosen email address, AS WELL AS dynamically to the user's email address. My client, though, would like to have the user's registered username (all this happens via Joomla!) included in either the email, or, preferably in their database also.

Obviously I can add a field that simply requests the user to enter their username, but I am hoping for transparancy and ease-of-use here, so I would prefer that Chronoforms automatically includes the username (remember, ONLY registered users can see or access this form).

Anybody have any ideas/suggestions?

Kind regards,
Riaan Eloff
GreyHead 31 May, 2010
Hi Riaan,

Please search here on 'getUser' to find examples of getting the user info from the Joomla User Object.

Bob
riaaneloff 31 May, 2010
excellent! thanks...will do.

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