- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2016 12:59 PM
Hello All,
I am not very good at scripting and have basically copied others here to get what i need.
I am trying to create a task script to do the below, but I have "Test" as a first name and "Testing" as a surname.
I currently have the below script, which show of works but I want a space between the first name and surname?
var comp = current.variables.eur_start_date.getDisplayValue();
var first = current.variables.eur_first_name.getDisplayValue();
var last = current.variables.eur_last_name.getDisplayValue();
task.short_description = 'New Account Required for'+ ' - ' + first + last + " - " + comp;
This is how it currently shows?
How can i get about sorting this out?
Cheers in advance
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2016 01:04 PM
Hi Carl,
task.short_description = 'New Account Required for'+ ' - ' + first + last + " - " + comp should be
task.short_description = 'New Account Required for'+ ' - ' + first + ' ' + last + " - " + comp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2016 01:04 PM
Try below:
task.short_description = 'New Account Required for'+ ' - ' + first +" "+ last + " - " + comp;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2016 01:10 PM
Thank you this has fixed my issue

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2016 01:04 PM
Hi Carl,
task.short_description = 'New Account Required for'+ ' - ' + first + last + " - " + comp should be
task.short_description = 'New Account Required for'+ ' - ' + first + ' ' + last + " - " + comp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2016 01:11 PM
Thank you this has fixed my issue