Set email id to name field

Sanket Kutwal
Tera Expert

Hello Peeps,

 

I want to set email id in the name field , currently name field shows the first name and last name, we already have first name and last name fields in the form, name field just takes values from both fields and shows first name and last name combinely.

 

SanketKutwal_0-1703072469492.png

 

SanketKutwal_1-1703072519192.png

 

2. Right click -> configure dictionary -> in the below ss you can check the code is already written in Calculate value to display the first name and last name in name field.

 

SanketKutwal_2-1703073831005.png

 

SanketKutwal_3-1703073857803.png

 

I want to display the email id in the name field instead of first name and last name, is it possible to do?

 

Let me know if you have answer for this, thanks in advance!

 

Thank you! 

 

1 ACCEPTED SOLUTION

Unique45
Mega Sage

If you return the email from the Calculation script then it will set email of the user in the name field.

Please refer following screenshots:

Pratiksha_PP_0-1703075503364.png

 

Pratiksha_PP_1-1703075528337.png

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

Please mark correct/helpful if this helps you!

View solution in original post

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Sanket Kutwal 

 

Greetings!!

 

You are trying to break the foundation here and it is not recommended. We already have email field as well, why you want to set the name with email field, also OOTB Name has concatenation of FN+LN , so it is not a good way.

 

What is your use case for this.,

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Unique45
Mega Sage

If you return the email from the Calculation script then it will set email of the user in the name field.

Please refer following screenshots:

Pratiksha_PP_0-1703075503364.png

 

Pratiksha_PP_1-1703075528337.png

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

Please mark correct/helpful if this helps you!

Thank you Pratiksha that's awesome, solution worked, thank you for the help!

 

Ankur Bawiskar
Tera Patron
Tera Patron

@Sanket Kutwal 

what point it serves adding email in name field?

Is that a valid business requirement?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader