Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • ok thanks .. so this is still a BUG in WP !? .. i also made a workaround .. as i described in my text .. maybe not many web developers need to have a button with a callback ..

    hi,

    Today i encountered the same problem with Caldera Forms .. it’s also mentioned in https://github.com/CalderaWP/Caldera-Forms/issues/2051 , written on Nov 3, 2017 .. here Rob Wilde writes :

    I am having trouble getting Custom Callback to fire either from Form Settings or from custom button. […] Does the custom button Click Target callback work the same as the Form Settings Callback Function? It says under the field_name “Selector or the callback function to push form values on click.” but not sure if it is referring to JS or a WP Hook. This will not fire like the Form Settings callback ??

    i read conversation with Josh Pollock (@Shelob9), founder/ lead developer of Caldera Labs, but he didn’t give a good answer ..

    I did some research by Google and looked into the Caldera docs, but the issue is rarely mentioned and it seems it’s (still !?) a bug : i probably found this problem also at https://github.com/CalderaWP/Caldera-Forms/issues/874 : “Button target callback is not triggered #874” .. this issue was opened at 12 oct 2016 and NOT solved / fixed ..

    I’m an experienced web developer but not very familiar with WP .. however, i solved the problem : i added some own click event onto such Caldera button by some jQuery code and it works. I can give you my solution and info which i found about this subject, but i want to ask you if you solved this problem by now, or did you decide for another approach. And : is this really a Caldera bug ? I tried to fill-in several things as “Click Target” option and supply code to trigger it, but nothing works ..

    indeed it works, BUT the muttznutz’ code is wrong .. it should be like this:

    Changing the line :
    function Widget_SU ($name, $max = 1, $id = '', $args = '')
    to
    function __construct ($name, $max = 1, $id = '', $args = '')
    seems to sort the problem

    • This reply was modified 5 years, 8 months ago by tissatussa7.
Viewing 3 replies - 1 through 3 (of 3 total)