The form has no submit button and is strictly a read only form for lookups. I have field rules hiding collection rows but the space and border are still showing. I use a lookup table to fill in all the fields. How can I hide those empty spaces and borders?
$(document).on("onloadlookupfinished", function () { //Run the function when the form is first loaded. HideCollectionRows(); //Reusable function that cycles through all rows in collection to determine if they should be hidden. function HideCollectionRows() { $('.myCollectionCheckField').each(function() { if($(this).hasClass('hidden')) { $(this).closest('div.form-q').addClass('hidden'); } else { $(this).closest('div.form-q').removeClass('hidden'); } }); } });
Edit: I used this code. It works fine but the load takes a little time.