Condition Email with or without attachment

Hi stcroppe,

The expected outcome of the statement mentioned is if there is a file uploaded " if ($w(" #Attachment ").value.length > 0) " then “matches” finds the string required for the document attached in the dataset then applies it to " [docs.wixstatic.com/ugd/${matches[1]}?dn=${matches[2]};](http://docs.wixstatic.com/ugd/${matches[1]}?dn=${matches[2]}`;) " resulting in a document URL to be attached to the email.

This was working but now returns “File Undefined” where the URL is meant to be.

Edit: Sorry page link is scsengineering.com.au