I have particular function named profilefrm() in which I am checking conditions returning true or false, I have created another function checkcontacts(). I have called this function in first one. I have successfully returning true or false from second one. I have flow is
function profilefrm(){
if condition1{
// on false
returning false;
}
checkcontacts();
}
function checkcontacts(){
if condition1{
// on false
returning false;
}
return true;
}
But issue is on false condition in second function it is taken as true in first one. and refreshing page accordingly.