How to use "Add me" icon from glide_list on the "assigned_to" field

smarti37
Kilo Sage

Hi guys,

My objective is to add "Add me" icon (used with the field "watch_list") next to the field "Assigned To".
I try to understand how the UI Macro "lightweight_glide_list" works but I'm not aware with Jelly script 😞

This UI Macro must include the "can_write" function to avoid unexpected updates (e.g. avoid update on read-only field).

Do you have an idea to create an UI Macro "Add me" that can be added on sys_user reference field ?

I hope you can help me 🙂

Thanks.

1 ACCEPTED SOLUTION

Mark Stanger
Giga Sage

This is a good idea. I just wrote an article this morning showing how you can do this. Let me know how it works!

http://www.servicenowguru.com/system-ui/ui-macros/add-me-ui-macro-user-group-fields/


View solution in original post

8 REPLIES 8

Hi, is there a way to use this for a list field? I have used the code from your post and it only works on a standard reference field. Thank you.

hafka
Kilo Explorer

Hi,

>Once you've created the macro you need to invoke it on your user field by adding the 'ref_contributions=add_me' attribute to the dictionary of the user field.

about invoking the functionality, I have added attribute: ref_contributions=add_me in sys_user - collection. Is there anything else I should do to because I cannot see the new icon?



You don't add the attribute to the sys_user collection. You add it to the dictionary attribute of the user field you're working with (assigned_to, caller_id, etc.).


hafka
Kilo Explorer

Thanks,

task - "assigned_to" did the trick.