• 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: How update a readonly field

How update a readonly field 4 days 20 hours ago #43998

Hi,
I explain my problem.
In a form I have three fields mapped to a joomla db table named ‘#__cities’. The fields are:
  • sales-city, a dropdown Type populated by this query:
//<code>
$items = array();
$db = JFactory::getDbo();
$items[] = "|Selezionare[c]";
$db->setQuery("SELECT cityName FROM #__Cities ORDER BY cityName ASC");
$results = $db->loadObjectList();
foreach ($results as $result) {
    $items[] = $result->cityName . '|' . $result->cityName;
}
return implode("\n", $items);
//</code>
  • sales-zipcode read-only field
  • sales-county read-only field

  • The query that populates the sales-city field works correctly.
    I would now like that, when I select a city from the dropdown, the sales-zipcode and sales-county fields update automatically with the values retrieved from the table.
    I was thinking of resolve this with a plugin and javascript code, but there is probably an easier way to achieve this.
    Can you help me with this?
    Thank You
    Gaetano
    Gaetano
    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!