We have created custom action in workflow. We need to call ajax on change event of dropdown. We put ajax function in customaction.js file.
jQuery.ajax({
type: âPOSTâ,
url: âhttps://websitename/custom/Extension/application/Ext/Utils/functionaction.phpâ,
data: {
ânounceâ:âdddâ,
âsite_idâ:site_id,
âactionâ: âcustomfunctionâ
},
success: function (data) {
console.log(data);
},
error: function (errorThrown) {
console.log(errorThrown);
}
});
customfunction is define in âhttps://websitename/custom/Extension/application/Ext/Utils/functionaction.phpâ, file.
It is not giving response from function. is there any step we need to follow for call ajax function ?
Kindly help us. We are stuck here.
Thanks in advance.