With Shopify API you can set up input fields for user to adjust theme, for example:
{
"type": "number",
"id": "products_per_page",
"label": "Products per page",
"default": 20
}
Shows a checkbox in the page theme admin panel sidebar. However, user can set an invalid value, for example -2.
In that case, what I understand, I can change liquid file to display an error message.
However, the problem is, that when user will not notice the error, it will be visible to other users.
So my question is: how to validate Shopify theme settings?
Is there a way to display error messages in the sidebar next to input fields, or to display error message in the liquid only to the admin?