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!!

Related Read:  How to Print Multiple Invoices in Magento 2 | HiddenTechies