How to Allow Null Value in Multiselect System Configuration in Magento 2
It tends to be accomplished bu adding the <can_be_empty>1</can_be_empty> tag in system.xml document
Ex:
<field id="hideprice" translate="label" type="multiselect" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Hide Value For</label>
<source_model>PHPCodez\Permission\Model\Config\Source\Group\Multiselect</source_model>
<can_be_empty>1</can_be_empty>
</field>
Reference
https://in.pinterest.com/pin/833377106065496823/
https://www.patreon.com/posts/how-to-allow-in-77805306
https://ko-fi.com/i/IW7W8I6V90
https://www.diigo.com/annotated/c18a570a054835b29c65a7d55ac8e02a
https://www.kaskus.co.id/post/63d35e705027b52042625d30/1
https://meetanshi.blogspot.com/2023/01/how-to-allow-null-value-in-multiselect.html
https://dribbble.com/shots/20490430-Allow-Null-Value-in-Multiselect-System-Configuration-in-Magento2
https://www.symbaloo.com/shared/AAAAAYGFmhAAA41-4uvCiw==
Comments
Post a Comment