Dynamically display drop down option in form xml file - Joomla! Forum - community, help and support
hi,
i have drop down menu options , b follows:
<field name="firstchoice" type="list" default="0"
<option value="0">a</option>
<option value="0">b</option>
</field>
i need second drop down menu based on first drop down menu value. if select, second drop down menu displayed options a1 , a2. if b selected, second drop down menu displayed options b1 , b2. right syntax in joomla xml form display second drop down menu based on first drop down menu, following pseudo code?
<field name="secondchoice" type="list" default="0"
if (firstchoice == "a")
{
<option value="0">a1</option>
<option value="0">a2</option>
}
else if (firstchoice == "b")
{
<option value="0">b1</option>
<option value="0">b2</option>
}
thank you.
kind regards.
i have drop down menu options , b follows:
<field name="firstchoice" type="list" default="0"
<option value="0">a</option>
<option value="0">b</option>
</field>
i need second drop down menu based on first drop down menu value. if select, second drop down menu displayed options a1 , a2. if b selected, second drop down menu displayed options b1 , b2. right syntax in joomla xml form display second drop down menu based on first drop down menu, following pseudo code?
<field name="secondchoice" type="list" default="0"
if (firstchoice == "a")
{
<option value="0">a1</option>
<option value="0">a2</option>
}
else if (firstchoice == "b")
{
<option value="0">b1</option>
<option value="0">b2</option>
}
thank you.
kind regards.
hi,
plese me if desired application
1)i have basic joomla form has 3 drop downs country, town, shop
2) need dropdown list based on dropdown list provided above.
i have achived data data base , create drop down coding in registration.xml in usercomponent
what needs achived:-i trying create dynamic drop downs based on above data selected in dropdown.
please me working hard couldnt find solution , code break throug please me , thank in advance.
regards daniel,
plese me if desired application
1)i have basic joomla form has 3 drop downs country, town, shop
2) need dropdown list based on dropdown list provided above.
i have achived data data base , create drop down coding in registration.xml in usercomponent
what needs achived:-i trying create dynamic drop downs based on above data selected in dropdown.
please me working hard couldnt find solution , code break throug please me , thank in advance.
regards daniel,
Comments
Post a Comment