Title: Execute some user Javascript when SEND button is pressed
Last modified: August 22, 2016

---

# Execute some user Javascript when SEND button is pressed

 *  Resolved [hotcore](https://wordpress.org/support/users/hotcore/)
 * (@hotcore)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/execute-some-user-javascript-when-send-button-is-pressed/)
 * Hi again,
 * so far things are great thanks to your much appreciated help!
 * I need to check some fields which are related. E.g. if a RadioControl has a specific
   value then and only then I must check if a date and a name were entered properly
   by the user.
 * Is this possible?
 * TIA,
    Arie
 * [https://wordpress.org/plugins/calculated-fields-form/](https://wordpress.org/plugins/calculated-fields-form/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/execute-some-user-javascript-when-send-button-is-pressed/#post-5833637)
 * Hi,
 * Could you send me the particular situation, with the name of fields and the values
   considered as valid for the date field, please?
 * Best regards.
 *  Thread Starter [hotcore](https://wordpress.org/support/users/hotcore/)
 * (@hotcore)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/execute-some-user-javascript-when-send-button-is-pressed/#post-5833769)
 * Hi,
    thanks for your offer to help! I solved the issue by placing the code to
   check some dependent fields in a calculated field. That works fine 😉 Since I’m
   not used to Javascript I spent quite some time in the trap: if (var = value) …
   That is a quite some nasty “feature” of Javascript… However, my first form is
   now succesfully completed. Thnk you very much for all the help! Bye, Arie

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Execute some user Javascript when SEND button is pressed’ is closed to
new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [send](https://wordpress.org/support/topic-tag/send/)

 * 2 replies
 * 2 participants
 * Last reply from: [hotcore](https://wordpress.org/support/users/hotcore/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/execute-some-user-javascript-when-send-button-is-pressed/#post-5833769)
 * Status: resolved