0

I make a component for Joomla 3. It has two lists "City" and "Place". How can I make the "Place" list update without reloading the page when I select "City"?

<field name="cityid"
type="sql"
class="cityid"
label="Выберите город"
description="Выберите город"
sql_select="e.*"
sql_from="#__lk_cities AS e"
sql_group="title"
sql_order="e.id ASC"
key_field="id"
value_field="title"
 filter="raw"
header="Выберите город"
/>

<field name="placecoolectionid"
type="sql"
label="Выберите место сбора"
description="Выберите сбора"
sql_select="e.*"
sql_from="#__lk_place_collections AS e"
sql_group="title"
sql_order="e.cityid ASC"
sql_filter="cityid"
key_field="id"
value_field="title"
required="true"
class="placecoolectionid"
header="Выберите место сбора"
showon="cityid!:0"
filter="raw"
/>

If you do not complicate, give a very detailed answer because I'm new to this

4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.