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
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
Hi agostinopol,
What have you added to your Custom Code?
Where do you need the username?
Bob
What have you added to your Custom Code?
Where do you need the username?
Bob
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?
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?
readonly=readonly
in Extra params
in Extra params
This topic is locked and no more replies can be posted.