Add specific variables to Incident Description?

Community Alums
Not applicable

Hi All,

I have 2 variables on the incident for via the portal.

What I would like is the variables question and answer to be placed in the backend incident description field underneath the actual incident description but only if the variables have been answered.

I have the below 2 lines within the record producer, can I place something here?

current.short_description = producer.summary;
current.description = producer.comments;

I've achieved something similar with a business rule, but these brings over all variables and removes the producer.comments.

Any help would be much appreciated.

Thanks!
Alex

6 REPLIES 6

Community Alums
Not applicable

Hi Ankur,

Thanks for getting back to me.

Yes, I would like the variables to show in the incident description field if filled out in the portal form.

Can you please help with me with the script for the client script to achieve this?

Thank you,
Alex

Hi,

why client script?

It can be done in the record producer script itself which I already shared.

If my response helped please mark it correct and close the thread so that it benefits future readers.

regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader