Unfortunately, the username and password you have entered do not match!

Registration

Unfortunately, this username is already taken!

Unfortunately, this e-mail address is already used!

Please retype the verification code.

All fields are required

RSForm Pro! optoins

Welcome, Guest
Username Password: Remember me

RSForm Pro! optoins
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: RSForm Pro! optoins

RSForm Pro! optoins 1 year, 5 months ago #11204

  • Kopecek
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Examples:
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:

1. Create a textbox component
2. In the Default Value, type this code:

//<code>
$user = $RSadapter->user();
return $user['email'];
//</code>

This piece of code (including the //<code> tag) loads the user information in the $user variable. Here's what you can use:

* $user['id'] = user id -->OK
* $user['username'] = the username -->OK
* $user['fullname'] = registration full name FALSE
* $user['email'] = registration email -->OK

Help please

Re:RSForm Pro! optoins 1 year, 5 months ago #11269

  • andreic
  • OFFLINE
  • Moderator
  • Posts: 494
Hello,

In order to retrieve the email of the logged in user and display it in one of your form's fields please try using the following code:

//<code>
$user =& JFactory::getUser();
return $user->email;
//</code>

In addition to the user email you can also retrieve the user's name, id, or username. You just need to replace email with your desired information, for example:

return $user->id;
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team

Re:RSForm Pro! optoins 6 hours, 1 minute ago #0

Hello,
This is an automatically generated message.
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 wish to receive our 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: http://www.rsjoomla.com/support-policy.html.

Thank You!
PLEASE NOTE: This topic is NOT locked and you can add replies to it. Other users are free to reply as well. This message has been generated by a bot and has no effect on the topic whatsoever.
  • Page:
  • 1
Moderators: alex, alexp, octavian, bogdanc, andreic
Time to create page: 0.40 seconds
Feedback