• Resolved nicecap

    (@nicecap)


    Hello guys,

    How could I call a (php)function when a user leaves a specific field after he entered a string?

    Depending on this string the function would prepare the content of 4 other fields in the same form and enter it as default automatically.

    It’s not about the processing of the form – it’s about filling fields depending on the content of 1 specific fields. I’m sure this is possible but I havn’t found the way to do it yet.

    Thank you
    Chris

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

    (@shelob9)

    Thanks for using Caldera Forms. You would need to bind the the change event of that field and send the data back to the server via AJAX to call the PHP function. If you’re not familiar with AJAX in WordPress, check out my slides and links from the WordCamp Miami presentation I did on AJAX here: http://joshpress.net/introduction-to-ajax-in-wordpress/

    Please keep in mind these forums are not regularly monitored by our team. You might get help from the power users on here, but the channel to get support from us directly is to open a support ticket at https://CalderaWP.com/support. Through that form, paying customers, will receive a response from our team will follow up about this issue within 1 business day.

Viewing 1 replies (of 1 total)

The topic ‘Call a function when a field was entered’ is closed to new replies.