• 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: Can JomSocial usernames be pulled into form?

Can JomSocial usernames be pulled into form? 13 years 7 months ago #11427

  • kevin6
  • kevin6's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Our 'Contact Us' form is used by members who are already logged in, so my question is whether we can automatically detect the username submitting the form and populate a hidden field with that info, so that we can remove the request for 'Full Name' in the form?

Thanks!
The administrator has disabled public write access.

Re:Can JomSocial usernames be pulled into form? 13 years 7 months ago #11438

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 733
  • Thank you received: 60
Hello,

This can be achieved through a simple custom script. Please try using :

//<code>
$my = JFactory::getUser();
$myUN = $my->username;
//</code>

in the "Default value" property of your desired form field. You can also refer to a similar example of auto-populating a form field from community builder:

www.rsjoomla.com/customer-support/docume...mmunity-builder.html
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Re:Can JomSocial usernames be pulled into form? 13 years 7 months ago #11443

  • kevin6
  • kevin6's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Thanks! It's working now. :)
Last Edit: 13 years 7 months ago by kevin6.
The administrator has disabled public write access.

Re:Can JomSocial usernames be pulled into form? 12 years 8 months ago #14669

  • ikwil
  • ikwil's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hello Andreic,

Has this this piece of been changed in the 1.4.0 R40 version?
I tried both ways.

First method returns nothing in the field

Method described in documentation is giving me a "Not authorized page" in in saving Joomla

Joomla 1.5.23

Jasper
The administrator has disabled public write access.

Re: Can JomSocial usernames be pulled into form? 12 years 8 months ago #14745

  • ricco.semento
  • ricco.semento's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1
What if I want to pull custom field information like address, city state, zip etc?
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!