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

siddharth26
Tera Guru

Hi Ankur,

 

i have created the Display BR and Client script as above , i have use field business_service to hide from Incident form, But as soon i login as system admin , i dont see the field as am not member for any group ,the group which i have used in BR is cpapcity mgmt , so as per the script members from that group only should be not able to see the field right , it should hide fields only for those two users 

David Loo

Don Goodliffe who are part of capacity mgmt.

 

thanks

 

Siddharth

Hi Siddharth,

please impersonate with the group members.

So if logged in user is member of Capacity Management group then it should hide.

If this is your requirement then please update as below

function onLoad(){

if(g_scratchpad.isMember.toString() == 'true'){

// hide your fields one by one

g_form.setVisible('field1', false); // your field name here

g_form.setVisible('field2', false); // your field name here

}

}

Regards
Ankur

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

Hi Ankur,

 

Thanks a lot for your help.your awesome.

 

thanks

Siddharth 

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

@Ankur Bawiskar  Could you please share BR and Client script here, I am looking for same condition.