- 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-12-2022 10:19 AM
That does not work.. not sure why? It's not running the script at all.
Root cause of JavaScriptException: org.mozilla.javascript.NativeError
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2022 10:24 AM
current.work_notes = producer.what_is.getLabel() + ': ' + producer.what_is + '\n' + producer.does_the_incident.getLabel() + ': ' + producer.does_the_incident;
current.work_notes = producer.does_technology.getLabel() + ': ' + producer.does_technology + '\n' + producer.what_date.getLabel() + ': ' + producer.what_date;
current.work_notes = producer.describe.getLabel() + ': ' + producer.describe;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2022 10:28 AM
Hi,
I believe what you're doing would only post the last line? since you're adjust the work_notes field 3 times while the script runs.
Anyways, I have this...and I get this:
So it does work...you may want to check field names. Try one line first, then add more as you go on.
If the above fields are involved with your MVRS...then that is a separate discussion and why I was mentioning your original question has already been answered, because now it's going to go wayyy out in another direction. I'd recommend you create a new post with that and describe your fields, what you're doing, want to do, etc. feel free to mention me
You're not providing all the details here and that may alter the suggestions and outcomes from what is being provided to you.
Please mark reply as Helpful, 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-14-2025 02:03 AM
Allen Andreas this solution we tested this is not the right code the variables is not working here