• 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: sync user information with rs form.

sync user information with rs form. 9 years 8 months ago #32230

  • cihan
  • cihan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Hi.

If registered user is logged in then he must see his name and email on the form. I mean form must take name and email from user informations after logging in. If user is not logged in then it will be empty.

It will be like default value. How can I do it.

I hope I can explain sorry for bad english.

Thanks.
The administrator has disabled public write access.

sync user information with rs form. 9 years 8 months ago #32253

  • bogdan.tataru
  • bogdan.tataru's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 174
  • Thank you received: 40
In order to achieve this head to Components > RSForm!Pro > Manage forms > select your form and add the following php code as a default value for the name field:
//<code>
$user = JFactory::getUser();
return $user->get('name');
//</code>

.. and respectively for the email field:
//<code>
$user = JFactory::getUser();
return $user->get('email');
//</code>

More on this here:

www.rsjoomla.com/support/documentation/r...n-form-is-shown.html
My help is not official customer support. To receive assistance, submit a ticket by clicking here
The administrator has disabled public write access.
The following user(s) said Thank You: cihan

sync user information with rs form. 9 years 8 months ago #32254

  • cihan
  • cihan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Thanks a lot.
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!