Aleš Sýkora wrote

Use custom Javascript on form submission with Fluent Forms

15. 6. 2021 in

If you need to use your custom script on form submission and using Fluent Forms, use this code in your form’s custom JS settings.

$form.submit(function(e) {
    var email = $form.find("[name='email']").val(); // variable from form
    console.log(email); //Check if it works
    // Your custom JS event code here
    alert(1); //check if script runs well
});

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More from category
Aleš Sýkora wrote
Translate labels in Iconic Delivery Slots
21. 1. 2021 in
If you need to change labels of fields added by Iconic Delivery Slots to WooCommerce checkout, use this snippet:
Read More
Aleš Sýkora wrote
Featured Image missing after WordPress update
22. 3. 2021 in
Using WordPress + Oxygen builder and can not found featured image in post/page settings? It happend to me after WordPress 5.7 update. If you didn’t disabled it in gutenberg settings, then you might have same problem as me. How to fix it? Install/re-Install theTwenty Twenty-One theme to your website and your featured images will be […]
Read More
Aleš Sýkora wrote
Change WordPress login logo with code
6. 11. 2020 in
Need to change wordpress login logo? Use this code in custom plugin or in Code Snippets plugin. Change the background image url to your image and Link Title to your site name for example.
Read More
magnifiercross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram