How can I add a variable to the end of a String field

John H1
Tera Guru

I have a request to add a variable to the end of our Short Description variable.

 

I'm looking for something like Short Description: I want to add additional software to my laptop - Joe Jones

Joe Jones is a variable called "Requested For"

 

This is what I'm playing with to no avail.

current.short_description = "I want to add additional software to my laptop - " + producer.requested_for;

1 ACCEPTED SOLUTION

Rupanjani
Giga Guru

Hi @John H1,

Try the below script and check

current.short_description = "I want to add additional software to my laptop - " + producer.requested_for.name;

 


Mark the response correct and helpful if the answer assisted your question.

View solution in original post

6 REPLIES 6

Sandeep Rajput
Tera Patron
Tera Patron

@John H1 Did you try the following.

current.short_description = "I want to add additional software to my laptop - " + producer.requested_for.first_name+' ' producer.requested_for.last_name;

@John H1 I suggested the same solution, but it wasn't marked as an accepted solution. May I know the reason?

Rupanjani
Giga Guru

Hi @John H1,

Try the below script and check

current.short_description = "I want to add additional software to my laptop - " + producer.requested_for.name;

 


Mark the response correct and helpful if the answer assisted your question.

John H1
Tera Guru

Thanks for the quick response, where would I I add this, I tried a couple of places with no luck