There will be 2 types of field editor: unrepeatable & repeatable. In this document, we will only cover “repeatable field” since it is more complicated than the other one.


NOTE:

Values created by repeatable fields is always a “JSON array” and can be retrived on Shopify theme via Liquid iteration tags like {% for %} loop.


FOR EXAMPLE:

{% for value in product.metafields.namespace.key %}

    {{value}}

{% endfor %}


A repeatable field will display information/ buttons below:



Counter (1): to indicate the ordinal number of present repeated field and total number of repeatable fields.


Up - Down buttons (2): to move a repeated field up or down.


  • Up button does not work if the current repeated field’s ordinal number is 1.
  • Down button does not work if the current repeated field’s ordinal number is equal to the total number of that repeatable field.
  • Both up and down buttons do not work if the total number of repeated field is 1.


Remove button (3): to remove the current repeated field. This does not work if the total number of repeated field is 1. (If you want to remove it, please go to “Custom Fields” – “Configuration” tab).


Repeat button (4): to repeat a repeatable field.