Zrinity is the leader in enterprise-class email marketing
management solutions and content management solutions for marketing professionals and developers worldwide.
Knowledge BaseDisable form submit until all ActivEdit instances load
Disable form submit until all ActivEdit instances load
When multiple instances of ActivEdit are included in a form, it's possible for a user to submit your form before all instances have loaded, since the document loads before MSDHTML. This may cause null content to be returned to your form action page.
You can disable submit until all instances have loaded by adding the following to your form page.
lastInstance is the fieldname you provided in the name or fieldname attribute for the last ActivEdit instance in the form.
In document.submitButton.disabled = 1;, submitButton refers to the value provided in the name attribute of the submit button. Note that the name attribute of the submit button should not be "submit" when using form validation, as formName.submit() will return Object does not support property or method.