• 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: Pulling Joomla User Info Into Form

Pulling Joomla User Info Into Form 12 years 4 months ago #21020

  • diver165
  • diver165's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
I want to pull joomla user info over into my form. I want the form to be for registered users to submit repair requests. I do not want them to input user information because I want it to come from their own user ID.

I thought about using hidden fields to pull over the user info. Using the RSForm help I am trying to use:

//<code>
$rsuser=JFactory::getUser();
$user=$rsuser->get('username');
return $user;
//</code>

and

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

By placing these bits of code in the "Default Value" area as shown. My problem is I don't get any information passed to the caption and value when I plug those into the Admin and User emails.

What am I doing wrong?
The administrator has disabled public write access.

[solved] Pulling Joomla User Info Into Form 12 years 4 months ago #21021

  • diver165
  • diver165's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Found my issue... The caption tag does not pass through on a hidden field...well be cause there isn't a caption! DOH... problem solved
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!