Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
{% schema %} { "name": "Countdown Timer", "settings": [ { "type": "checkbox", "id": "enable countdown", "default": "false", "label": "Enable Countdown Timer" } ] } {% endschema %} <script> </script>
How to solve this kind of error? What are the changes I have to made up to solve this error?
Hi @Developers_Hub,
I think you need to use underscore instead of space, like this:
"id": "enable_countdown",
Hope this helps!
Hello @Developers_Hub ,
Cause: Because default by true or false but you add "false" so the error.
You can change the code like this to fix it.
{% schema %}
{
"name": "Countdown Timer",
"settings": [
{
"type": "checkbox",
"id": "enable countdown",
"default": false,
"label": "Enable Countdown Timer"
}
]
}
{% endschema %}
<script>
</script>
I hope the above is useful to you.
Kind & Best regards,
GemPages Support Team
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025