Buy Now
Sign in

Find and store user information

micker , June 21 2018
M
micker 106
June 21 2018 #378479
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 63.2
June 21 2018 #378490
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 106
June 21 2018 #378493
worked for chronoform 5 ?
GreyHead 63.2
June 21 2018 #378501
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 106
June 21 2018 #378509
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 63.2
June 22 2018 #378518
Hi micker,
Yes.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much