Forums

username

agostinopol 15 Jun, 2016
Good morning, I have to load the username of a textbox
joomla 3.5.1/Chronoforms 5
I read this article https://www.chronoengine.com/faqs/56-cfv4/cfv4-other-faqs/2586-how-can-i-get-information-about-the-user.html

io have insert

<?php
$user = \JFactory::getUser();
?>

in custom code (on load), but do not understand where I'm wrong.

thanks for the tips
GreyHead 15 Jun, 2016
Hi agostinopol,

What have you added to your Custom Code?

Where do you need the username?

Bob
agostinopol 15 Jun, 2016
I solved the problem, i insert:

1) the custom witch code

<?php
$user = JFactory::getUser();
$form->data['user_name'] = $user->username;
?>

2) i insert textbox

how can I make the textbox username can not be modified?
agostinopol 15 Jun, 2016
readonly=readonly
in Extra params
This topic is locked and no more replies can be posted.