Only Display Two Assignment Groups as Choices on A Form

richelle_pivec
Mega Guru

For my Assignment Group fields (on the Standard Proposal Form) I'd like to only allow two Assignment Groups to be chosen (Change Management and Change Management Admin). I first tried to a Write ACL that only allowed Admin to write on the field. I also needed a Read ACL that allowed ITIL to read the field. This did not work as the ITIL users can still pick from the list and see all of the Assignment Groups.

I can't modify the dictionary definition on the field as it is the Assignment Group field off of the Task form and used throughout the Instance.

I do have a client script that auto-populates the field (On Load) with the Change Management Assignment Group, but I don't want anyone to be able to change it to anything but Change Management Admin.

Any thoughts on how I can restrict it to just the two groups?

thanks,

Richelle

1 ACCEPTED SOLUTION

richelle_pivec
Mega Guru

Thank you both for your suggestions. Here's what I ended up doing. I added a Dictionary Override to the Assignment Group field on the Standard Change Proposal form.


For that, I marked "Override Reference Qualifier" as True.


I then put this in for the Reference Qualifier: roles=change_manager


Those two assignment groups both have that role, so this worked for me. They both display now and none of the others do. Plus all of the others still display for the other task types.



Thanks,



Richelle


View solution in original post

9 REPLIES 9

Chuck Tomasi
Tera Patron

Hi Richelle,



What you need is a reference qualifier on that field.



http://wiki.servicenow.com/index.php?title=Reference_Qualifiers



This can be as simple as adding a filter:



Name | is | Change Management OR


Name | is | Change Management Admin



No scripting needed.



Let me know if you need additional details.


I did try that and it didn't work since the field itself is the Assignment Group field on the Task form and effects all Assignment Group fields on all of the forms it is used on.


I guess I could make a custom Assignment Group field for just the Standard Change Proposal form, but then I'd have to figure out how the original Assignment Group field is generating the Approval Records. I'll see if I can figure that route out.


thanks,



Richelle


Hi Richelle,



No need for a customer assignment group field. That gets you in to all sort of other sticky situations (especially around reporting.) You will have to look in to using a dictionary override then. I don't know if the scriptless solution is available in that situation however.



Step 1: Make a note of the sys_ids for the two groups you want.


Step 2: Configure the dictionary entry for that field


Step 3: Create a dictionary override. Set the table to your appropriate table (eg incident) and check the reference qualifier box


Step 4: Add this to the reference qualifier


javascript:'sys_idIN(sysID1,sysID2)



Where sysID1 and sysID2 are the two groups you noted.



http://wiki.servicenow.com/index.php?title=Reference_Qualifiers


FYI - we'll be talking about Reference Qualifiers on the next episode of TechNow on March 16. I owe you a "thank you" as I forgot to add dictionary overrides to my list of things to talk about.