Hi
I try to call a trigger from Javascript, I have this script in Javascript Dynaform :
CODE: $.ajax({
url: host+"/api/1.0/"+ws+"/cases/"+app_uid+"/execute-trigger/"+trig_uid+"", // endpoint URL
data: {}, // a GET request does not send parameters. But in case of other type of requests, data could be sent here
type: "PUT",
beforeSend: function(xhr){xhr.setRequestHeader('Authorization', 'Bearer '+token);}, // Header with the access token
success: function(xhr, status, error){
alert("SUCCESS!!"+xhr.responseText);
},
error: function(xhr, status, error){
alert("ERROR!!"+error);
}
}); https://unexpectedendoffile.com/unexpected-end-of-json-input/
and in trigger i have this script :
CODE
@textPanel="Coooooooooooooooool";
But i have this message ==> SyntaxError: Unexpected end of JSON input
I try to call a trigger from Javascript, I have this script in Javascript Dynaform :
CODE: $.ajax({
url: host+"/api/1.0/"+ws+"/cases/"+app_uid+"/execute-trigger/"+trig_uid+"", // endpoint URL
data: {}, // a GET request does not send parameters. But in case of other type of requests, data could be sent here
type: "PUT",
beforeSend: function(xhr){xhr.setRequestHeader('Authorization', 'Bearer '+token);}, // Header with the access token
success: function(xhr, status, error){
alert("SUCCESS!!"+xhr.responseText);
},
error: function(xhr, status, error){
alert("ERROR!!"+error);
}
}); https://unexpectedendoffile.com/unexpected-end-of-json-input/
and in trigger i have this script :
CODE
But i have this message ==> SyntaxError: Unexpected end of JSON input