Dynamic Name & email

firesi 20 Jun, 2012
Been scratching my head over this, I'm obviously missing something very basic.

When a form is submitted or I go to reply from emails the information isn't dynamic to the user.

At worst it's from [email]admin@admin.com[/email] and at best its the site admin email address.

Help :-)
GreyHead 20 Jun, 2012
Hi firesi,

Have you used the Dynamic Reply To settings?

Bob
firesi 21 Jun, 2012
I can reply directly to the sender but it always comes in from either [email]admin@admin.com[/email] or the name of the site.

So I'm half way there.

Si
msm_portata 21 Jun, 2012
I have what I think is a similar problem.

I have a form in an article that is only reachable by logged-in users. In the form, I have an email action that is tiggered On Submit. I want to send the confirmation email to the user by grabbing the Joomla user's email address. What do I put in the Dynamic To field to make that happen?
GreyHead 22 Jun, 2012
Hi firesi,

Sorry, I'm lost, exactly what settings do you have and what is the problem.

Bob
msm_portata 22 Jun, 2012
Thank you.

In the FAQ, it is not clear where the php code should go, so I put it in a Custom Code action in the On Submit section, and it works great. (You may want to add that to the FAQ)

<?php
$user =& JFactory::getUser();
$form->data['user_email'] = $user->email;
$form->data['user_name'] = $user->name;
?>
GreyHead 23 Jun, 2012
Hi msm_portata,

I updated the FAQ, thank you,

Bob
zingales 23 Jul, 2012
hi, I was getting too emails from [email]admin@admin.com[/email] , having set the dynamic from field.

what I discovered is that in that DYNAMIC section we must insert the field names without the {} parenthesis.

this is also a point that could be improved in the future versions of chronoforms: I wish we could mix some standard text and dynamic parsed {fields} (as in the email Template).
that could avoid the double setting in STATIC and DYNAMIC sections... leading to just a single section with mixed STATIC text and parsed dynamic fields.

sounds good, isn't it?

for now, it would be advisable to mention that no {} are needed in the dynamic fields.
GreyHead 23 Jul, 2012
Hi zingales,

My custom Email [GH] action lets you do that: user@example.com,{email},{another_email}

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