During a code review of a module MyCompany_PaymentCurrencies you see a configuration field declared in the file etc/adminhtml/system.xml:
What is the consequence of the attribute showInStore being set to 0?
A. The field value will not be accessible on the store front by calling ScopeConfigInterface::getValue() with a $scopeType argument of ‘store’.
B. The input field will not be visible if a store view scope is selected in the system configuration
C. The input field will only be visible if a website’s default store scope is selected in the system configuration
D. The input field will be disabled if a store view scope is selected in the system configuration
Answer: B
We Check the case to create a field:
showInDefault=”1″ : It is show in the Default Config only.
showInWebsite=”1″ : It is show in the Main Website
showInStore=”1″ : It is show in the Default Store View
canRestore=”1″ : It is show in the Check Box “Use system value”
Value =0 then it will hide accordingly.
Answer: B
Correct Answer B