How to concatenate two fields value

vinuth v
Tera Expert

Hi All,

 

I need to concatenate two field values in the incident record short description.

On the form level I have two field one is "Issue" field and it is select box field, another field is "Short description provided" field and it is single line text.

 

In the incident record short description field I need to display the value like

Short Description: (<type of issue selected>) <short description provided>.

 

In the record producer script I tried like this

current.short_description = "(producer.issue.getDisplayValue())"+short_description; 

 

and

current.short_description = '('+producer.issue.getDisplayValue()+')'+short_description;

 

but it's not working, just I am getting short description field data.

 

Please any one provide me the input,

Thanks,

Vinuth

8 REPLIES 8

Harish KM
Kilo Patron
Kilo Patron

Hi @vinuth v in record producer script do the following

current.short_description = producer.issue.getDisplayValue() + '-' +producer.short_description;

Regards
Harish

SunilKumar_P
Giga Sage

Hi @vinuth v, can you try the below in the record producer script?

 

 

current.short_description = '('+producer.issue.getDisplayValue()+')'+producer.short_description;

 

 

Regards,

Sunil

siva krishna M2
Tera Guru

Hello @vinuth v ,

 

Try below code 

current.short_description = producer.issue.toString()+producer.short_description.toString()

Jyoti Jadhav9
Tera Guru

Hi @vinuth v 

You can try below Record Producer Script:

 

var sd = producer.short_description_provided;
var issue = producer.type_of_issue_selected.getDisplayValue();
current.short_description = '('+issue+')'+ sd;
Please see the below Screenshots:

Screenshot 1:

Jyoti4_0-1707223161043.png

Screenshot 2:

Jyoti4_1-1707223241050.png

Screenshot 3:

Jyoti4_2-1707223268094.png

Please hit the like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.

 

Thanks & Regards

Jyoti Jadhav