Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2023 11:25 PM - edited 09-24-2023 11:30 PM
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
Harish