Title: Javascript
Last modified: May 2, 2017

---

# Javascript

 *  Resolved [ithall](https://wordpress.org/support/users/ithall/)
 * (@ithall)
 * [9 years ago](https://wordpress.org/support/topic/javascript-37/)
 * Do you have any documentation or examples on the javascript functionality?

Viewing 1 replies (of 1 total)

 *  Plugin Author [EDGARROJAS](https://wordpress.org/support/users/edgarrojas/)
 * (@edgarrojas)
 * [9 years ago](https://wordpress.org/support/topic/javascript-37/#post-9095461)
 * Sorry i don’t have documentation for that yet but basically you can execute javascript
   after the form is loaded or before the form is submit.
 * If you want to add code when the form is loaded you need to add it in this method:
 * AfterFormLoaded:function(jQueryFormReference){
    //Here you can put code that 
   you want to be executed after the form is loaded },
 * If you want to add code before the form is submitted you need to add it in this
   method:
 * BeforeFormSubmit:function(formData,jQueryFormReference){
    //Here you can put 
   code that you want to be executed before the form is submitted }
 * Hope this helps but if it doesn’t please let me know.

Viewing 1 replies (of 1 total)

The topic ‘Javascript’ is closed to new replies.

 * ![](https://ps.w.org/smart-forms/assets/icon-256x256.jpg?rev=1226707)
 * [Smart Forms - when you need more than just a contact form](https://wordpress.org/plugins/smart-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-forms/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [EDGARROJAS](https://wordpress.org/support/users/edgarrojas/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/javascript-37/#post-9095461)
 * Status: resolved