Create list or array for submit form message body
I'm trying to add to the message body of a submit.form but wanting to refine my code. I have four fields per line and want to output those if the first of the fields "DIU Item [n] is filled.
DIU Item 1, DIU Item 1 Qty Used, DIU Item 1 Open Not Used, DIU Item 1 Qty Needed
Is there a way to create a loop that would use an array or list that would allow for the format "Item: "+DIU Item 1+" Qty Used: "+DIU Item 1 Qty Used+ " Open Not Used: "+DIU Item 1 Open Not Used+" Qty Needed: "+DIU Item 1 Qty Needed+"\n"
I want to only grab the fields that have data.