I have a javascript button, which is used to get the field value, that field is not added to page layout. This button is working fine for system admin but for, custom profile its not working Javascript Code:
{!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/30.0/apex.js")}
if('{!Order.Field__c}' != null){
window.parent.location.href=('/{!Order.Field__c}');
}
else{
alert("Okay");
}
Thanks