Forums

Formulario y usuarios registrados

sierra 03 Jul, 2014
Hi,

I have a form in an area for registered users. Can I find out who sent me the form? The form does not ask personal information. Because the user is registered .... Can use the form details of who sent the form?

Thanks a lot.
sierra 03 Jul, 2014
Hi,

I never thought I'd be in the faq... sorry😟

Thanks a lot🙂
sierra 03 Jul, 2014
Hi,

The data does not appear on my email. I put this in a "Custom code". Do I have to put something else in another place?

<?php
$user =& JFactory::getUser();
$form->data['id'] = $user->id;
$form->data['email'] = $user->email;
?>

Thanks

Data Array:

Array
(
    [chronoform] => prueba
    [event] => submit
    [Itemid] => 186
    [option] => com_content
    [view] => article
    [id] => 1006
    [input_checkbox_group_1] => si,noo
    [input_submit_2] => Submit
    [d769e2b13d6078d87f372b3e037b8a85] => 1
    [email] => 
 prueba@prueba.com
)

Validation Errors:

Array
(
)

gracias
Debug Data

    email
        10
            Result An email has been SENT successfully from (prueba) luis@ono.com to luis@gmail.com	
            Body
            Label Text 	si,noo
            $form->data['user_email'] = $user->email;

            Submitted by 95.18.92.10
            Attachments array ( )

GreyHead 03 Jul, 2014
Hi sierra,

You have to set a Template for your email in the Email action. If you leave the template box empty - with nothing at all in it - then ChronoForms will try to create a template for you.

Bob
sierra 07 Jul, 2014
Thanks Bob,
Now I understand. I have to put the data manually. Generate auto template is not enough.

<td>{email}</td>
<td>{id}</td>
<td>{username}</td>
This topic is locked and no more replies can be posted.