Hi I want to Hide few fields in Incident form for certain groups in servicenow how can i achieve this thourght UI policy or ACL or Business rule.

siddharth26
Tera Guru

Hi all,

 

I want to Hide few fields in Incident form for certain groups accessing it in servicenow. how can i achieve this thorough UI policy or ACL or Business rule.

 

thanks

Siddharth

1 ACCEPTED SOLUTION

Glad that it worked.

Would you mind marking my response as correct & helpful if I am able to resolve your query?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

27 REPLIES 27

Hi,

update as this

var RCAApprovalHide = Class.create();
RCAApprovalHide.prototype = {
initialize: function() {
},

group : function(){

var gr = new GlideRecord('sys_user_grmember');
gr.addQuery('user', gs.getUserID());
gr.addQuery('group', 'IN', gs.getProperty('AssignedGroups'));
gr.query();
if(gr.next()) {
return true;
} else {
return false;
}
},

type: 'RCAApprovalHide'
};

new RCAApprovalHide().group();

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

siddharth26
Tera Guru

Hi Ankur,

 

On the client script can you please tell me were i can use the group name so that ,members from that group can edit few fields in incident form.

please let me know were we use group name in client script.

 

Thanks

Siddharth

Hi,

please refer below images

Display BR

find_real_file.png

find_real_file.png

Client Script:

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

siddharth26
Tera Guru

Hi Ankur,

 

Thanks for the Information and screen shot do i need to set up conditions when to run the business rule,

 

Thanks

 

Siddharth

No condition required.

Just ensure you use valid group name in the BR script

Ensure you use valid field names in client script

Let me know if I have answered your question.

If so, please mark response as correct & helpful

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader