Difference between string type and email field type

sandeepa2
Kilo Contributor

What is the difference between a email field type and string field type ?

3 REPLIES 3

gopi2203
Tera Expert

HI Sandeep,



We don't have email field type in servicenow.


String field type general accepts string data with the specified length.



Please refer below article.


https://docs.servicenow.com/bundle/jakarta-servicenow-platform/page/administer/reference-pages/refer...


lSurya 24
Giga Guru

Hello Sandeep,



Type Email in a field will only accept emails which have an email validation whereas a string is a free text field.


Shamma Negi
Kilo Sage
Kilo Sage

Hi Avula,



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



Hope this helps you.



Regards,


Shamma


Regards,Shamma Negi