Hi @thestrengster
I would not use the foreach stlye loop as demonstrated above. Instead, I would use the nested friendly has_fields or have_rows while loop functions.
You will find nested code examples in the docs. Please do check them out on the docs
Thanks
E