• Resolved antoniostarace

    (@antoniostarace)


    Hi,
    Caldera forms 1.5.0.6.

    I tried setting a custom callback but can’t get it to work.

    I tried a simple “custom_callback” and a

    function custom_callback() {
    alert(“CALLBACK!!!”);
    }

    but it does not work.

    I put the function in an enqueued script, as inline script or in an HTML field in the very form. None of these works and no errors are shown in console.

    What’s wrong with what I’m doing?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Josh Pollock

    (@shelob9)

    @antoniostarace

    Thanks for using Caldera Forms. I just tested this and it worked fine. What I wonder is if you didn’t give the right function name in the form settings. For this to work, you would have to enable custom callback in form settings and then for function name enter “custom_callback”. By default, none of this functionality is turned on.

    Please keep in mind we check this forum once or twice a week, for priority support with 24 hour or less turn-around, please make a purchase and open a ticket at https://calderaforms.com/support

    Thread Starter antoniostarace

    (@antoniostarace)

    Hi Josh,
    I’m quite sure I set everything correctly.
    The only thing I could think is that the callback is called after the primary action, so if anything goes wrong at this stage the callback is not called.
    I’ll try again.

    Thanks for now.

    Thread Starter antoniostarace

    (@antoniostarace)

    Ok, it seems to be working with inline functions.
    Thank you.

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