Hi,
Currently you cannot pass any arguments directly, but when calling this function the “rule friendly name” is passed as an argument. This means you can name your rule “PAT” and then get the argument passed if you set up the function like this:
function fnpattest(ruleId){
alert(ruleId);
}
You can also set it up like this if it is more convenient:
In your rule – call this function
fnpattestPAT
Then in the Custom JS insert this function
function fnpattestPAT(){
fnpattest("PAT");
}
Hope this helps,
Alexander