7 years ago
3
Topic

please i have two forms and i want some of the fields to be prefilled by contents gotten from another form. what am trying to do is i want when i write the article title it will prefill the author and authors email address because every author must have been registered before they can publish an article. thank you 

Get a Book for SEBLOD
4229 Posts
Kadministrator
7 years ago
0
Level 1

Hi,

easiest way to get current users name and email is to use user live plugin, you can get any property available in user object in Joomla

https://docs.joomla.org/Accessing_the_current_user_object

7 years ago
1
Level 1

Sorry I checked the link and I still don't understand much. From what I can understand its the to call the user currently logged in?. Please I would love if you could just tell me how to set the live value on each of these fields exactly what am doing is this.. Registered users create articles from the frontend when visitors come they see an article they like and contact the author filling another form. So I want as they type the articles topic the author name field prefills and also the authors email address prefills

4229 Posts
Kadministrator
7 years ago
0
Level 2

Hi,

I attached some tutorial about live values. Details depend on what exactly would you like to do - to get logged in users data you can use described User live plugin. 

But if your desire is to get current article author's data into form it will be more complicated, you will need to use either SD live plugin (if all needed data is already stored in article or SQL plugin (with this one you can get data from database but you need to know sql) to get needed information.

Get a VIP membership