0

When we create system.xml file by default "use website" checkbox option will come. Is there any way to remove that option.

2 Answers 2

2

app/code/Vendorname/Modulename/etc/adminhtml/system.xml

showInWebsite="0"

  <field id="test_name" translate="comment" sortOrder="51" type="text" showInDefault="1" showInWebsite="0" showInStore="0">
    <label>Test Name</label>
  </field>
1
  • HI @Ravidrasinh Zala. Thanks for your respoonce. is there any way to remove [storeview] also
    – Mani
    May 24 at 11:57
1

set showInWebsite="0" and as per your requirement set showInDefault="1" showInStore="0"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.