Email Field Type

madeves
Kilo Contributor

On the user form, there is a field for email with an envelope next to it.   This is a specific field type 'Email' but this does not seem to be a general field type available on other fields.   I would really like to be able to enable this field type on other forms.   Is this possible please?

1 ACCEPTED SOLUTION

ian_kinnear
ServiceNow Employee
ServiceNow Employee

Hi there,



There are a number of fields types that are hidden by default, mainly in order to reduce confusion if many different field types were shown in the list.



If you view the sys_glide_object table (enter sys_glide_object.list in the 'filter' box at the top of the left-navigation bar to jump to the table) you'll find the email field. You'll notice that by default you can't make it visible due to an ACL, but if you enable the security_admin role you can turn on admin override for the field, which will allow you to make it visible.



btw, all this is essentially doing is extending the string field and enabling some straight forward javascript to validate that the data entered is in an email format. If you are not comfortable (or don't have access) to change the ACL, you can achieve the same result with some client side javascript. See this post: Validate email field input for an example of that.



Hope this helps,



Ian


View solution in original post

8 REPLIES 8

April, Did you get it to work? I am on Eureka and it worked for me. Let me know and I can help you more.


Hi Adam,



I tried elevating myself as security admin but it still prevetns from changing Visiblity to True . Any idea how to do this now ??


madeves
Kilo Contributor

Ok will do. Thanks again.


Nivlac1000
Kilo Expert

Unfortunately this field type is not a Variable field choice for Catalog Items and other record producers.   You don't know of anything easy to validate those fields other than scripting each Variable do you?


TIA


Cal