I have a dropdown in Magento 2 config setting. Now I want the setting to get displayed only when there are any options available for the dropdown, else it should be not shown. I also want to display a message in this case that "NO options are available currently". How can I implement that without breaking magento2 standards.
Magento – Magento 2: How to show admin system configuration options conditionally
custommagento-2.1.3magento2system-configsystem.xml
Best Answer
Go to Admin -> Stores -> Configuration -> Advanced -> Admin -> Admin Base URL
Set Use Custom Admin URL to "Yes" & below it's code
magento\vendor\magento\module-backend\etc\adminhtml\system.xml
Here
1 = Yes, 0 = No.
It depends on what select value you set on your dropdown.