Buy Now
Sign in

Find and store user information

micker , June 21 at 07:15
M
micker
hello
i create a light contact form for my registred user
i want to get user name + user email for hidden field and email to administrator ...
how to acheive this regards
GreyHead
HI micker,
Please check this FAQ
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
M
micker
worked for chronoform 5 ?
GreyHead
Hi micker,
Sorry, please try this FAQ instead.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
M
micker
I create a custom code in submit part (top)
<?php​
​$user = \JFactory::getUser();​
​$form->data['user_email'] = $user->email;​
​$form->data['user_name'] = $user->name;​
​?>
and use {user_email} and {user-name}​
​in my to dynamique that correct ?
GreyHead
Hi micker,
Yes.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much