• One of the fields available in the form builder is Button, by default it’s the submit button, but a dropdown allows changing the type to: Button.

    Changing the button type to button, opens an additional field called Click Target, there is note which says: Selector or callback function to push form values on click.

    What is the selector or callback function so that the button redirects to a url?
    Have tried using just a url, but the button isn’t working?

Viewing 3 replies - 1 through 3 (of 3 total)
  • tissatussa7

    (@tissatussa7)

    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 ..

    Thread Starter rubberdragon

    (@rubberdragon)

    We didn’t resolve the issue.
    Found workaround, added button with link outside of the form!

    tissatussa7

    (@tissatussa7)

    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 ..

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Button Link to URL’ is closed to new replies.