I created a simple module to enter values in textfields which I show in module positions on the frontend (banner images...).
Now I need a solution like if dropdown value in fieldname "xy" is "xyz" then show me another xml field.
Is this possible?
I created a simple module to enter values in textfields which I show in module positions on the frontend (banner images...).
Now I need a solution like if dropdown value in fieldname "xy" is "xyz" then show me another xml field.
Is this possible?
You can use Joomla's showon
attribute in your field.
Here's an exmaple:
<field name="first" type="list" label="Select Something">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</field>
<field name="second" type="list" label="Select Something Else" showon="first:3">
<option value="1">Other Option 1</option>
<option value="2">Other Option 2</option>
<option value="3">Other Option 3</option>
</field>
The above example will only show the second field if option 3 is selected from the first field, using showon="first:3"
.
In the showon
attribute, you need to define the name of the field and the value
Hope this helps
showon="language:en-CA"
. Any solution?
if ($params['field'] == "unblikenstageden" {do something}
that's a long word that I am not familiar spelling