Harish KM
Kilo Patron

Is this submit button on Portal page or native UI?

screenshot would be helpful

 

The below script will do

function onLoad() {
   //Type appropriate comment here, and begin script below
   var getEmployeeType = g_form.getValue('variabeName'); // check employee variable
   alert(getEmployeeType);
   if(getEmployeeType == 'alert value') // check alert value and pass here
   {
   if(window == null){
        // for portal
        var z = this.document.getElementsByClassName("btn btn-primary btn-block ng-binding ng-scope");
        z[0].style.display = 'none';
    }else{
        // for native
        document.getElementById("submit_button").style.display  = 'none';
    }
}
}
Regards
Harish