{% for collection in product.collections %} {% if collection.title contains "New Collection" %} <p class="line-item-property__field"> <label for="childsName">Child's Name:</label> <input id="childsName" type="text" name="properties[Child's Name]" form="product-form-{{ section.id }}"> </p> {% endif %} {% endfor %}