In your email button script, correct the below line:
in the below code, check you're if statement code:
if (form1.Page1.ddInvoiceType.rawValue== null)
form1.Page1.ddInvoiceType.border.edge.color.value = "230,0,0";
Check the somExpression in below code:
I have corrected this:
cSubject: "INV: " + Page1.subAgencyAddress.LocalPublicAgency.rawValue + " " + Page1.subNumbersDate.StateJobNo.rawValue,
Fix these two points, your email functionality will work.