• 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: Admin Email value from auto pop list of table

Admin Email value from auto pop list of table 12 years 3 days ago #23002

  • a.gill
  • a.gill's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
I have a drop down field that pulls values from a table. Using the documentation located here : www.rsjoomla.com/support/documentation/v...st-from-a-table.html

How can I send the value selected from the table in an email. When the email arrives I see the id and not the value that I am looking for.

Any help is appreciated.
Last Edit: 12 years 3 days ago by a.gill. Reason: Hit enter before my time.
The administrator has disabled public write access.

Admin Email value from auto pop list of table 12 years 3 days ago #23005

  • a.gill
  • a.gill's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Solved :silly: I just removed the striked section below.

//<code>
$items = "|Please Select[c]\n";
$db =& JFactory::getDBO();
$db->setQuery("SELECT your_value, your_label FROM your_table");
$result = $db->loadObjectList();

foreach ($result as $r)
$items .= $r->your_value . '|' . $r->your_label . "\n";

return $items;
//</code>
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!