Hi. When submitting a form I would like to get some info from the server code response.
My server code returns for example { “alert”: “success”, “message”: “Thanks for your request”, “requestid”: “32145” } and I want to get the requestid value, e.g. with formSubmitSuccess function with "data" parameter, something like:
jQuery(’#template-contactform’).on( ‘formSubmitSuccess’, function(data){
// Your JS Codes here
var myrequestid=data.requestid;
});How can I do this?
