In this post I am going to explain how to add dependant field in admin system configuration in magento 2.

In order to create a field dependant on single value, use the below code:

And to create a field dependant on two or more values, use the below code:

Here is the example in which, if parent field’s (Enabled) value “1” then “Title” field will appear.

Thats it. Enjoy Magento 2!!