I have 3 fields defined in my XML file like so:
JYESJNO
JYESJNO
JYESJNO
Solution :
You can chain the attribute values of showon, using [AND], like so:
showon=”field1:1[AND]field2:1″
Adding more fields to the chain is also allowed.
On a side note, you can use an [OR] clause in the chain too, adding more complexity, for example:
showon=”field1:1[AND]field2:1[OR]fieldX:1″
Update for Joomla 3.7:
As of Joomla 3.7, you will be able to to use the ! operator (not equal to):
showon=”field1!:1″
This means, if field1 does not equal 1
Reference :
https://joomla.stackexchange.com/questions/17681/form-field-showon-with-multiple-fields
https://joomla.stackexchange.com/questions/21022/form-field-showonempty