replied on March 29, 2021
I'm not entirely certain I understand from your post how your form is working, so I might be off-base here. But if I'm understanding correctly, you might be able to use some Javascript like this. This assumes the collection has a Class Name of myCollection and one of the fields that is hidden within the collection has a Class Name of myCollectionCheckField. Whenever any changes are made to myCollection, it checks to see if each instance of myCollectionCheckField is hidden or not, and if it is hidden, it'll hide the whole row in the collection.
CSS:
.hiddenField {display: none!important;}
Javascript:
$(document).ready(function () {
$('.myCollection').change(function() {
$('.myCollectionCheckField').each(function() {
if($(this).hasClass('hidden'))
{
$(this).closest('div.form-q').addClass('hiddenField');
}
else
{
$(this).closest('div.form-q').removeClass('hiddenField');
}
});
});
});