How can I auto populate email field, when user field filled.

ND7
Kilo Sage

Dear Expert,

How can I proceed with this requirement? Once the user field name is entered, the email field should automatically populate. Please help Thank you so much. Appreciate your help. 

find_real_file.png

2 ACCEPTED SOLUTIONS

did you try putting alerts ?

make sure your back end names of variables are correct  

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
    if (isLoading || newValue === '') {
        return;
    }
 
    var user = g_form.getReference('name', userDetails);
    
    function userDetails(user) {
alert(user.email);
        g_form.setValue('email', user.email);
    }
}

View solution in original post

Thank you Ankur, I will try this Catalog lookup for sure. BEST

 

View solution in original post

20 REPLIES 20

Hi @UndertoadNW 

 

It can be done auto populate way as well on catalog item level.

 

LearnNGrowAtul_0-1702040238857.png

 

*************************************************************************************************************
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]

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