Seeking help verifying SAP portal login in Adobe form using JavaScript, need alternative solutions
When a button is clicked in my Adobe Interactive Form, I aim to verify user credentials for the SAP portal using JavaScript, but I'm not receiving the expected status back. Here's the code I'm using:
when button CLICK event in the adobe digital form
var cPortalUrl = "https://nspek.com:50001/irj/portal?j_user= <userid>&j_password=<password>";
var cStatus;
var pingportalstatus =
function PortalPing (cPortalUrl){
var xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function()
{
cStatus = xmlHttp.status;
};
xmlHttp.open("GET", cPortalUrl, false);
xmlHttp.send();
return xmlHttp.status;
};
Any advice on why cStatus isn't being populated would be appreciated.
Thanks.