display name = first name + middle name + last name

hemantnh
Tera Expert

how to get display name as first name + middle name + last name

first name = Hemanth 

middle name = kumar

last name = c

thn the display name: Hemanth kumar c

 

find_real_file.png

1 ACCEPTED SOLUTION

Rahul Kumar17
Tera Guru

hi

find_real_file.png

 

output

 

find_real_file.png

 

 

 

If my response helped please mark it correct and close the thread.

Thanks,
Rahul Kumar

View solution in original post

11 REPLIES 11

Varsha21
Giga Guru

Hi,

function onChange(control, oldValue, newValue, isLoading) {
   if (isLoading || newValue == '') {
      return;
   }
	
	var str1=g_form.getValue('str1');
	var str2=g_form.getValue('str2');
	var str3=g_form.getValue('str3');
	
	var str4=str1+" "+str2+" "+str3;
	
	g_form.setValue('str4',str4);

try this on onchange of your display name field.

Rahul Kumar17
Tera Guru

hi

find_real_file.png

 

output

 

find_real_file.png

 

 

 

If my response helped please mark it correct and close the thread.

Thanks,
Rahul Kumar

these is not working for me ,i just changed the existing user record but still it is not giving the display name

 

find_real_file.png

Hi, U write onchange client script so write the filed name than change the value so write the field name Thanq
If my response helped please mark it correct and close the thread.

Thanks,
Rahul Kumar

Hi Your on change client script is written on first name,it should be on display name field.