Hello,
I am using a contact form where I wold like to insert the logged in user's first name and last name for the same fields in the contact form.
I can insert code like this in to the field's default value:
Is there something similar I could use to get the ES First Name and Last Name for those two different fields?
Please note, I have two ES profiles created and Name (first name and last name) appears in both profiles, if this matters
Thanks for considering,
Jordan
I am using a contact form where I wold like to insert the logged in user's first name and last name for the same fields in the contact form.
I can insert code like this in to the field's default value:
$user = JFactory::getUser();
return $user->get('email');
Is there something similar I could use to get the ES First Name and Last Name for those two different fields?
Please note, I have two ES profiles created and Name (first name and last name) appears in both profiles, if this matters
Thanks for considering,
Jordan