• I have set up my Caldera forms. I have checked the option of custom callback function. I want to know where do I put my javascript code (in which file) so that I could handle my callback function?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have the exact same question.

    The only place I was able to put the callback function and for it to work correctly was within the form itself. In the form creator you would add an html field and put your <script></script> in the content area. I tried putting it in the header of the template and in javascript files and they did not trigger. Let me know if this works, I couldn’t really find anywhere that had this information so it was just a test on my part.

    Hello,

    you can put your javascript funktion into an .js-File and place it in your themes JS-folder.
    You can then enque this script via the wordpress function called wp_enqueue_script().
    Wordpress will load it and make it available to use with the callback feature of CF.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Caldera Forms: Where to put the code of Javascript callback function?’ is closed to new replies.