Is it possible to display field value by combining two fields?

Thrupthi
Tera Expert

I have two fields on my form

1. Provider

2. Associated Phone Number

I want the third field "Name" to display by combining the value of these two fields

Example:

Provider = Sim

Associated phone number = 12345

Name = Sim - 12345

Can we achieve this?

find_real_file.png

 

17 REPLIES 17

No this did not work onload

find_real_file.png

Ashutosh Munot1
Kilo Patron
Kilo Patron

HI,


IF you want to see this OOB Functionality check Asset management module. Once you create asset it use's asset tag and model as display name.

Thanks,
Ashutosh

Service_RNow
Mega Sage

Hi,

Plaese try to below code :

var fname = g_form.getValue('provider');
var lname = g_form.getValue('associatephone number');
var first_name = fname.toLowerCase();
var last_name = lname.toLowerCase();
var userID = first_name+'.'+last_name;
var display_name = fname+' '+lname;
g_form.setValue('u_name',display_name);

find_real_file.png

Please mark reply as Helpful/Correct, if applicable. Thanks!