• 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: passing data through url

passing data through url 10 years 7 months ago #28817

  • sales765
  • sales765's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
i can successfully pass data from fields, but id like to pass submitters user id as well from previous form. is there a way to do this in the url?
The administrator has disabled public write access.

passing data through url 10 years 7 months ago #28819

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
In order to populate a textbox with the user id, you can use the following code in the "Default Value" area of a textbox field (keep in mind that the user needs to be logged in):
//<code>
$user = JFactory::getUser();
return $user->get('id');
//</code>

More information can be found here:
http://www.rsjoomla.com/support/documentation/view-article/77-display-php-variables-by-default-when-form-is-shown.html
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.

passing data through url 10 years 7 months ago #28825

  • sales765
  • sales765's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
thank you for your response.
i can query the database using existing data to get the id, i just want to set the new forms submitters id to the same as the old. that way the form is assigned to them and not me as ill be the one entering it.
The administrator has disabled public write access.

passing data through url 10 years 7 months ago #28904

  • sales765
  • sales765's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
no help on this?
The administrator has disabled public write access.

passing data through url 10 years 7 months ago #28905

  • sales765
  • sales765's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
i tried passing &form[userid]=[global:userid]
[global:userid] provides the value but it does not seem to set form[userid]
any help is greatly appreciated
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!