Digging into this, the best way to implement this is through the onFormSubmit callback and this would require jquery (I understand that you mention you ain't using jquery now, is there a reason why?)
If you'd like an example of a working code, you can refer to the following codes:
Digging into this, the best way to implement this is through the onFormSubmit callback and this would require jquery (I understand that you mention you ain't using jquery now, is there a reason why?)
If you'd like an example of a working code, you can refer to the following codes: