Can you have comma separated email values in an email field?

DStoner1
Kilo Contributor

In our current Jakarta instance, some of our Change Request notifications are configured to send to a "User/group in field" recipient from the form called "Target audience DL," which is an Email field. The idea is that if I want to send out specific communication to a distribution list, I can put that DL in the field and the notification will send to them.

For one email, this works as expected. However, when I try multiple addresses, I get the following error:

find_real_file.png

I've already updated the Email field class to a length of 200 to allow for this.

So my main question is:

  1. Can I modify the Email field class to accept multiple email addresses? If so, how?

If not, what would another option be? Just use a string field and have an onChange client script validate the email address (e.g. that it has an "@" and ".com")?

Thanks in advance.

6 REPLIES 6

Allen Andreas
Administrator
Administrator

Hi,

Please go to variable item and do this under the Default Value tab:

find_real_file.png


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

I tried this in Orlando and the variable attributes is not present under Default Value for Email Type field

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

This field type is meant to only accept 1 value.  In order to accept multiple values the field needs to be of type "List".  Look at the Watch List field on Incident as an example.  List type fields will need to reference another table such as user or group but it also has a way to enter email addresses too:

find_real_file.png

Hi,

I have tried using the "List collector" , but cant see the email address , please find the screen shot.

NeelavathiM_0-1674714538412.png