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

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


madeves
Kilo Contributor

Hi Ian,



Thanks so much for that.   I turned on the admin override for the field and it works perfectly.   Thanks for your help.



Madeleine


ian_kinnear
ServiceNow Employee
ServiceNow Employee

Thanks Madeleine,



Please don't forget to turn off that admin override on the ACL now that you've made the field visible.



Ian


Hi Ian,


The ability to do this seems to have gone away in Eureka.   Do you know of a way you can add another email field to forms in Eureka?



Thanks


April