Title: Caldera Forms: Where to put the code of Javascript callback function?
Last modified: September 1, 2016

---

# Caldera Forms: Where to put the code of Javascript callback function?

 *  [mareebsiddiqui](https://wordpress.org/support/users/mareebsiddiqui/)
 * (@mareebsiddiqui)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/caldera-forms-where-to-put-the-code-of-javascript-callback-function/)
 * 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)

 *  [monicastuckey](https://wordpress.org/support/users/monicastuckey/)
 * (@monicastuckey)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/caldera-forms-where-to-put-the-code-of-javascript-callback-function/#post-7687387)
 * I have the exact same question.
 *  [kiko0850](https://wordpress.org/support/users/kiko0850/)
 * (@kiko0850)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/caldera-forms-where-to-put-the-code-of-javascript-callback-function/#post-8184671)
 * 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.
 *  [mgmtcircle](https://wordpress.org/support/users/mgmtcircle/)
 * (@mgmtcircle)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/caldera-forms-where-to-put-the-code-of-javascript-callback-function/#post-8477980)
 * 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.

## Tags

 * [callback](https://wordpress.org/support/topic-tag/callback/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [form](https://wordpress.org/support/topic-tag/form/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 3 replies
 * 4 participants
 * Last reply from: [mgmtcircle](https://wordpress.org/support/users/mgmtcircle/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/caldera-forms-where-to-put-the-code-of-javascript-callback-function/#post-8477980)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
