How to concatenate two fields value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 03:04 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 03:08 AM
Hi @vinuth v in record producer script do the following
current.short_description = producer.issue.getDisplayValue() + '-' +producer.short_description;
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 03:18 AM - edited 02-06-2024 03:19 AM
Hi @vinuth v, can you try the below in the record producer script?
current.short_description = '('+producer.issue.getDisplayValue()+')'+producer.short_description;
Regards,
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 03:21 AM
Hello @vinuth v ,
Try below code
current.short_description = producer.issue.toString()+producer.short_description.toString()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 04:44 AM
Hi @vinuth v
You can try below Record Producer Script:
Screenshot 1:
Screenshot 2:
Screenshot 3:
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