EDIT Button is Missing on group form

swethaa
Kilo Contributor

Hi All,

We have custom application, there are 5 groups : In group form , there is two fields with the name Manager and Backup Manager. 

Issue is : we have assigned two users for both Manager and Backup Manager to the same groups and same roles but the user who is assigned to Backup Manager ( not able to see " EDIT " button when the user open group form under related list.

find_real_file.png

10 REPLIES 10

Mark Roethof
Tera Patron
Tera Patron

Hi there,

If i look at the images, the fields shown appear to be read-only. Might that already be the problem? That the user does not have write access?

You could also check for the List Control on the Group Members Related List, though i suspect it has to do with the write access.

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Varsha21
Giga Guru

Hi there,

as Mark suggested please go through List controller and disable omit edit checkbox.

 

varsha

Prins Kumar Gup
Giga Guru

Hi,

In order to show edit button on the related list go to the list control--->check off the omit edit button --->then update.

Then you will find the buttons in the related list.

 

find_real_file.png

find_real_file.png

Please Hit like, Helpful or Correct depending on the impact of the response if this solves your query!!

Thanks,
PKG

Hi,

 

As per your suggestion, I have checked in List Control..I can see there is a script written like this below : only group manager or if the user has admin role can see the edit button. Due to security constraints, In our project we should not give User admin role. Now how to add Backup manager in to this script?

 

var answer = true; //Hide the 'Edit' button by default
if (gs.hasRole('user_admin') ||
parent.manager == gs.getUserID() || parent.u_wdpr_parent.manager.sys_id.toString() === gs.getUserID() || gs.getUser().isMemberOf(parent.u_wdpr_parent) || (parent.u_wdpr_self_managed && gs.getUser().isMemberOf(parent.name)) ) {
answer = false; //Show the 'Edit' button if user has 'user_admin' role or is group manager
}