To advance the functionality of your subscription form WordPress MailChimp WD provides a custom Javascript editor. You can use it to write additional Javascript functions, which will be applied to your form. The following built-in functions indicate the action which will trigger your code:
- before_load() // Occurs before the form is loaded.
- before_submit() // Occurs before the form is submitted.
- before_reset() // Occurs before the values are reset.
Custom Javascript editor also allows writing any functions outside of these three. For example, if you use jQuery, you can call the functions in a jQuery(document).ready()
method.