- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2022 02:30 PM
I have a record producer that goes into a table.
I want some of the fields from the record producer to put what's in those values into the notes field.
I want the fields to put into one entry in the notes journaling field.
How can I write a script in the record producer to do this?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2022 03:02 PM
Hi,
I believe this is a pretty common ask from the community so you may have more success searching the forums.
Outside of that, in the record producer script (that field on the record producer settings page).
You can use example like:
current.work_notes = producer.variables.field_1 + '\n' + producer.variable.field2;
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2022 03:01 PM
You could try something like this to update the comments or work notes, with the field values separated by a comma...
current.comments = producer.yourfieldname + ", " + producer.yourfieldname2;
current.work_notes = producer.yourfieldname + ", " + producer.yourfieldname2;
Susan Williams, Lexmark

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2022 03:02 PM
Hi,
I believe this is a pretty common ask from the community so you may have more success searching the forums.
Outside of that, in the record producer script (that field on the record producer settings page).
You can use example like:
current.work_notes = producer.variables.field_1 + '\n' + producer.variable.field2;
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2022 04:58 PM
That worked but how can I add the field name so it shows me the question and then the answer the person selected? All I see is the answer.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2022 07:21 PM
Hi,
You'd want to use getLabel(), such as:
current.work_notes = producer.field_name.getLabel() + ': ' + producer.field_name + '\n' + producer.field_name2.getLabel() + ': ' + producer.field_name2;
Please mark reply as Helpful, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!