Joomla 6 Notice

We are pleased to announce that all our Joomla extensions have been compatible with Joomla 6 since October 14th, 2025.

For those currently upgrading from Joomla 3 to 4: Instructions for Joomla 4 migration can be found here:

There are standalone documentations Visforms Joomla 4, Visforms Joomla 5 and Visforms Joomla 6.

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Important information for almost every question:
V1: Which Visforms version is running?
V2: Which Joomla version is running?
V3: Which PHP version is running?

Access to logged on user's data

More
10 years 4 months ago #2165 by robinhair
Replied by robinhair on topic Access to logged on user's data
Hi Aicha,

Fantastic, thank you so much, it worked just like the Name and Username. Here is the code I added in text.php
Code:
jimport( 'joomla.user.helper' ); $user = JFactory::getUser(); $userId = $user->get('id'); $userProfile = JUserHelper::getProfile( $userId ); if($userId != 0) { if($field->fillwith == 1) { $this->field->attribute_value = $user->get('name'); return; } if($field->fillwith == 2) { $this->field->attribute_value = $user->get('username'); return; } if($field->fillwith == 3) { $this->field->attribute_value = $userProfile->profile['address1']; return; } }

Your happy user :)
Robin

More
10 years 4 months ago #2168 by Administrator AV
Replied by Administrator AV on topic Access to logged on user's data
Hi Robin,

you're welcome.
Thanks for letting me know, that it works.
This makes it easier for me to add the feature to Visforms (which I think I will can do for the next release).

Kind Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 6:
docs.joomla-6.visforms.vi-solutions.de/en/docs/
Please ask only 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation fĂĽr Joomla 6:
docs.joomla-6.visforms.vi-solutions.de/docs/
Bitte immer nur 1 Frage pro Thema stellen :-).
The following user(s) said Thank You: robinhair

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum