• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: user email confirm "To" field

user email confirm "To" field 10 years 6 months ago #29159

Hi guys,

I have watched the video on a user submission email and it uses the email field in the form for the "To" field.

Our users are already logged in and have provided a email address already in our global user settings... is there a way to use that for the "To" field in order to avoid their having to re-enter a email address?

Many thanks.
The administrator has disabled public write access.

user email confirm "To" field 10 years 6 months ago #29170

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
Assuming that you want to create an e-mail form component, and by default, if the user is logged in, to enter it's registration e-mail in the Email field. Here's how to do it:
  • Create a textbox component
  • In the Default Value area, type this code:
//<code>
$user = JFactory::getUser();
return $user->get('email');
//</code>
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!