Can you have multiple variables on a record producer, tied to a single field on the record form?

tajarichardson
Mega Expert

I'm creating a record producer for an incident form. On the form, I need to independently gather information from multiple fields and have it be the work notes on the incident form once submitted.

Will having multiple variables mapped to the "work_notes" field cause issues or is it even possible?  

I haven't tried anything like this before, most of our incident forms have a multi line field that users can describe their issue in but I need to have this one set up differently. The option to have a pre-populated "default value" of the information I need to gather in a multi line field is not feasible for what I am trying to build. 

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Mapping multiple fields to the same mapped field won't work. Though, you can use the script part in the record producer.

For example, you could do something like:

current.description += producer.field1;
current.description += producer.field2;
current.description += producer.field3;

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

3 REPLIES 3

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Mapping multiple fields to the same mapped field won't work. Though, you can use the script part in the record producer.

For example, you could do something like:

current.description += producer.field1;
current.description += producer.field2;
current.description += producer.field3;

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

I wasn't even thinking about scripting! I got tunnel vision. Thank you, I'll try this. 

Hi there,

Please mark this answer as correct if it solves your problem. This will help others who are looking for a similar solution.
Thanks.

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn