I have a PHP script that makes a call to the Kanck API and triggers certain actions. The script resided on a cloud instance and I would like to trigger it to run everytime a form is submitted. How can I do this?
I have tried loading the PHP script using ajax and I am not getting any results.
Has anyone ever wanted to store the visitor IP address in Knack? I found some PHP code, but haven't tried it yet.
https://stackoverflow.com/questions/13646690/how-to-get-real-ip-from-visitor
Saleem,
You can do the following:
$(document).on('knack-record-create.view_xx', function (event, view, record) {
$.get('myscript.php', function (data) {
//whatever
});
});