Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Email client attribute on incident form

Gary Larsen
Mega Sage

I need to have the  Email client attribute to show only for logged in users with a certain role. can someone please help?

1 ACCEPTED SOLUTION

@Gary Larsen 

Then please inform customer that this requirement is not feasible.

šŸ’” If my response helped, please mark it as correct āœ… and close the thread šŸ”’ā€” this helps future readers find the solution faster! šŸ™

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

View solution in original post

13 REPLIES 13

There is a field that the incident management team can set to Initial, Update, or Resolve, on the incident form which changes the template and triggers an email to all of leadership. The problem is that anyone viewing the ticket and using the email button will inadvertently email all of leadership, which has already happened. To prevent this, I would like to restrict the email button so that only the Incident Management team can use it when one of these templates is active.

@Me Being Mustaq can you please elaborate on the "email_client_attribute_field_name"?

 

please share a screenshot from your PDI or client in anonymised view, to better understand where you found it? 

 

Thank you very much for sharing validated content

———
/* If my response wasn’t a total disaster ā†™ļø ⭐ drop a Kudos or Accept as Solution āœ… ā†˜ļø Cheers! */


you just open an incident then configure-dictionary then open the one with type= collection then under the attributes tab change email client to false and it will be removed from the menu

@Gary Larsen yes exactly this, not sure if a on load client script or display business rule could manipulate this according to the role of logged in user..

———
/* If my response wasn’t a total disaster ā†™ļø ⭐ drop a Kudos or Accept as Solution āœ… ā†˜ļø Cheers! */


@Gary Larsen 

as I mentioned yesterday there is no OOTB way to show/hide the email client based on some condition.

Either it will be shown or hidden always.

You can use onLoad client script + DOM and then show/hide that based on your form field value.

Note: DOM manipulation is not recommended

See below responses

AnkurBawiskar_0-1761879440548.png

 

 

AnkurBawiskar_1-1761879440533.png

 

 

šŸ’” If my response helped, please mark it as correct āœ… and close the thread šŸ”’ā€” this helps future readers find the solution faster! šŸ™

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