Avatar

Level 2

I believe that there was a bug logged for this issue, here is a workaround.

Add a regular button to the form used to execute the EmailSubmit button  (you can make the EmailSubmit button invisible)

On the click event of the "newly added" regular button add your script

NameOfEmailSubmitButton.event__click.resolveNode("#submit").target = "mailto:"+customemail.rawValue+"?subject="+subject.rawValue+"&cc="+cc.rawValue+"&bcc="+bcc.rawValue+"&body="+body.rawValue;

NameOfEmailSubmitButton.execEvent("click");