Hi @youllbejustfine
I’m afraid I couldn’t reproduce the issue on my end. The $value
variable will return 0 if there’s no entries in the repeater. For such case, you need to check it first like this:
if( empty($value) ) {
return $value;
}
Did you create the repeater field from other field types such as text? Do you have a same field key or name assigned to the page? Could you please share the JSON or XML export of your field group?
Thanks.