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 fields in a repeatable group 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 group will display information/ buttons below:



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


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

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


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


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