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

 

 

 

View solution in original post

11 REPLIES 11

scott barnard1
Kilo Sage

Hi Hemantnh

Could you give a little more detail. Is this a form on a particular table? Is it a catalog item or producer etc.

Also Does it matter if the Display Name field is a string field or not?

 

Just a little more detail please

 

it is in catalog item & display name i select as single line test

hvrdhn88
Giga Patron

you can write onchange catalog client script here, 

 

sample script :

 

 

var fn = g_form.getValue('first_name');

var mn = g_form.getValue('middle_name');

var ln = g_form.getValue('last_name');

var res = fn+' '+mn+' '+ln;

g_form.setValue('display_name',res);

 

Pankaj Bisht1
Giga Guru

 

var first= g_form.getValue('first_name');
var middle= g_form.getValue('middle_name');
var last= g_form.getValue('last_name');

var dispName= first + " " + middle + " " + last ;
g_form.setValue('display_name',dispName);