• 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: Auto-populate with article title?

Auto-populate with article title? 3 years 18 hours ago #41254

Hi,

Is it possible to autopopulate a form field with the title of the article in which the form is used?
How do I do?

Mayby inspired by this?:
//<code>
$user = JFactory::getUser();
return $user->get('email');
//</code>
Kind regards,
Michael
Last Edit: 3 years 18 hours ago by michael030.
The administrator has disabled public write access.

Auto-populate with article title? 3 years 12 hours ago #41255

  • djseleco
  • djseleco's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Thank you received: 10
Hi, try this:
//<code>
$doc = JFactory::getDocument();
return $doc->getTitle();
//</code>
Last Edit: 3 years 12 hours ago by djseleco.
The administrator has disabled public write access.
The following user(s) said Thank You: michael030

Auto-populate with article title? 3 years 5 hours ago #41256

Works like a charm - thank you!
The administrator has disabled public write access.

Auto-populate with article title? 3 months 5 days ago #43244

  • davide9
  • davide9's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hello,
I tested your solution but with your code i get the title of the page.
I need the title of specific article

can some one help me?
The administrator has disabled public write access.

Auto-populate with article title? 2 months 4 weeks ago #43255

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

Please try the example script provided here:
www.rsjoomla.com/support/documentation/r...-rsformpro-form.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.
  • 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!