Difference between string type and email field type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2017 03:53 AM
What is the difference between a email field type and string field type ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2017 04:06 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2017 04:10 AM
Hello Sandeep,
Type Email in a field will only accept emails which have an email validation whereas a string is a free text field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2017 05:28 AM
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