Buy Now
Sign in

Load joomla user data into an input box

zetap , May 24 2017, 23:30
Z
zetap 49
May 24 2017, 23:30 #368578
Hello

I am creating a form with ChronoForms V6, I need to load in an input box of the form the user data joomla, name, email, username.

In ChronoForms V5, I added a "custom code" element in the onload event and with the following php code and I solved it.
     
<? Php
$ User = \ JFactory :: getUser ();
$ Form-> data ['email'] = $ user-> email;
$ Form-> data ['name'] = $ user-> name;
$ Form-> data ['username'] = $ user-> username;
?>


In ChronoForms V6 I can not find the way to do it can you tell me how to do it?

Thank you very much !
admin 28
May 25 2017, 08:55 #368588
 1
 Answer
Hi zetap,

Just use this shortcode in your field "value" box: {user:name} or {user:email}..etc

Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!
Did you try the new ChronoForms7 ? if yes then please send us your comments!!
Z
zetap 49
May 25 2017, 13:52 #368619
Thank you very much, Regards !