• 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: PHP Address from current page for Default Value

PHP Address from current page for Default Value 6 years 1 month ago #38991

  • erica30
  • erica30's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
I'm trying to create a Message textarea in RSForms Pro that has a default value of "I'm inquiring about <street address>", where street address is on the same page in a realty component called iProperty.
I am attempting a php code that pulls in the current component data, to display the address in iProperty (in the default value field):
//<code>
$document = JFactory::getDocument();
$uri = JUri::getInstance();
return $this->full_address;
//</code>
I've tried a dozen variations and scoured the forums for similar code but have had no luck. Is there a way I can do this easily?
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!