Error Saving Edited Code

Solved
Slava_Maksimov
Shopify Partner
30 5 11

This is an accepted solution.

settings_schema.json 

You missed the square bracket. I checked this config everything works for me. If there is an error take a screenshot

❤️ JS
0 Likes
leeds107
Tourist
11 0 1

Oh my god - you are a genius! Thank you so so much for all your time and effort

cosmofry
Tourist
4 0 1

Hello Slava,

I'm having a very similar problem it seems to the customer above. I'm trying to add a theme setting to my shopify page using instructions from 'shopify developers'. Below is the existing code, and below that is the snippet I'm trying to insert. Please let me know if I'm doing anything wrong, and if you can help me that would be hugely appreciated. 

Best,
Cosmo

 

[
{
"name": "theme_info",
"theme_name": "Themekit template theme",
"theme_version": "1.0.0",
"theme_author": "Shopify",
"theme_documentation_url": "https:\/\/github.com\/Shopify\/themekit",
"theme_support_url": "https:\/\/github.com\/Shopify\/themekit\/issues"
}
]

 

{ "name": "Hear About Us", "settings": [ { "type": "text", "id": "hau_form_options", "label": "Form options", "default": "Facebook, Twitter, Google, Instagram, Youtube", "info": "Separate each option with a comma" }, { "type": "header", "content": "Form validation" }, { "type": "checkbox", "id": "hau_form_validation", "label": "Enable form validation", "default": true }, { "type": "text", "id": "hau_error_message", "label": "Error message", "info": "The error message that is displayed when no selection is made", "default": "Please select an option below" }, { "type": "text", "id": "hau_error_message_other", "label": "Other field error message", "info": "The error message that is displayed when there is no input in the 'Other' field", "default": "Please fill the text field below" }, { "type": "header", "content": "Error styling" }, { "type": "color", "id": "hau_error_color", "label": "Color", "default": "#ff0000" } ] },

 

0 Likes