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://magentoexpertforum.com/showthread.php/34606-How-to-Allow-Null-Value-in-Multiselect-System-Configuration-in-Magento-2


https://www.reddit.com/user/priyasadrani/comments/10mbz76/how_to_allow_null_value_in_multiselect_system/


https://in.pinterest.com/pin/833377106065496823/


https://list.ly/i/8471048


https://www.patreon.com/posts/how-to-allow-in-77805306


https://steemit.com/magento2/@priyasadrani/how-to-allow-null-value-in-multiselect-system-configuration-in-magento-2


https://ko-fi.com/i/IW7W8I6V90


http://www.video-bookmark.com/bookmark/5592210/how-to-allow-null-value-in-multiselect-system-configuration-in-magento-2/


https://www.diigo.com/annotated/c18a570a054835b29c65a7d55ac8e02a


https://www.kaskus.co.id/post/63d35e705027b52042625d30/1


https://adfty.biz/technology/how-to-allow-null-value-in-multiselect-system-configuration-in-magento-2/


https://www.scoop.it/topic/meetanshi-by-priyasadrani/p/4140286251/2023/01/27/how-to-allow-null-value-in-multiselect-system-configuration-in-magento-2


https://www.uplabs.com/posts/how-to-allow-null-value-in-multiselect-system-configuration-in-magento-2


https://meetanshi.wordpress.com/2023/01/27/how-to-allow-null-value-in-multiselect-system-configuration-in-magento-2/


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://637ca24934057.site123.me/blog/how-to-allow-null-value-in-multiselect-system-configuration-in-magento-2


https://www.storeboard.com/blogs/technology/how-to-allow-null-value-in-multiselect-system-configuration-in-magento-2/5564160


https://www.symbaloo.com/shared/AAAAAYGFmhAAA41-4uvCiw==


https://www.anibookmark.com/site/how-to-allow-null-value-in-multiselect-system-configuration-in-magento-2-ab1025952.html



Comments

Popular posts from this blog

FAQ Schema Generator

10 Native Advertising Statistics You Need to Know [2023]

Solved: Error 1273 Unknown Collation utf8mb4_0900_ai_ci in MySQL