I am trying to trigger an action off the successful submission of a form that emails the details of the subform to a distinct email.
This subform is setup as another form in the app and I can get the below code to work:
for each subrow in input.New_Payment_Subform
{
if(subrow.Trigger_Email1
== false)
{
sendmail
[
from
:zoho.loginuserid
to
:"email"
subject
:"test subform entry"
message
:"test subform entry" + subrow.Club + " club " +
subrow.Amount
]
subrow.Trigger_Email1=true;
}
}
BUT, when I go attach an attachment to that email that is submitted in the subform with the below code:
for each subrow in input.New_Payment_Subform
{
if(subrow.Trigger_Email1 == false)
{
sendmail
[
from :zoho.loginuserid
to :"email"
subject :"test subform entry"
message :"test subform entry" + subrow.Club + " club " + subrow.Amount
attachments: New_Payment_Subform.Invoice_Attachment
]
subrow.Trigger_Email1=true;
}
}
It says that I now have an improper expression at line 1, anyone why this maybe the case?