Support » Plugin: Calculated Fields Form » Button click event

  • Resolved stephenm


    Hi there… do you capture button click event in m jquery file??

    this event wont capture the button even

    (function ($) {

    function readyFn(i) {

    Can you help please?


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople


    Hello @stephenm

    Please, note that I’m the developer of the CFF plugin, and not for the jQuery framework, and your question is about how jQuery works.

    At the moment your code is evaluated you cannot ensure the fieldname4_1 field exists in the form, so, probably the piece of code $('#fieldname4_1') returns no element.

    There are two alternatives, you can to define your event in the bubbling process:

    jQuery(document).on('click', '#fieldname4_1', function(){ /* Your code here */ });

    More information in the documentation of jQuery.

    Or you can to define your function, for example:

    function my_code()

    and then, if the fieldname4 is a button, call your function from its onclick event (it is an attribute in the buttons’ settings):


    and that’s all.
    Best regards.

    Thanks so much for your reply….much appreciated.


Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.