I have a new form. In that form, I have a collection with two fields: (1) SDS Type, and (2) Upload button. The SDS Type field defaults to "Supplier Document" so that anytime a row is added, it shows as Supplier Document. How would I go about adding the first row of a collection and setting the value of the SDS Type to "Supplier Transmittal" when a brand-new form/process opens:
This would require the user to upload the PDF of the transmittal and one or more Supplier Documents. Trying to dummy-proof so the user doesn't make the wrong choice. I also need to know which is the transmittal and which are the supplier docs. This is what I had, but it didn't work.
$(document).ready(function(){ //Prefill Row 1 with SDS Type = Supplier Transmittal $('#Field54-1 input').val('Supplier Transmittal'); }) //close document.ready
Maybe I need to add a row first? I've seen solutions where rows can be added on various actions, but I haven't seen on open.