title: Sending Email when a new record is added in Netsuite
body: <p>I am trying to send an email when a customer presses the submit button in an online form.</p>
  
  <p>I made a user event script that is able to submit an email when a new record is added via netsuite but it doesn't trigger when a record is added via an online form.</p>
  
  <p>My script uses the <code>nlapiSendEmail()</code> function in a userevent script in the 'afterecordsubmit' trigger and it works within netsuite, just not when used in an online form.</p>
  
  <p>I am using Netsuite Sandbox, and I understand that emails sent in sandbox are sent to the logged in user in netsuite.</p>
  
  <p>Do online forms trigger userevent scripts? Thank you for the help!</p>