How to transfer a multi-row variable set from a record producer to a case form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 07:13 PM
HI all,
How can I create a multi-row variable set in a case form with 3 columns and a dynamic number of rows?
Any suggestions on how to implement this in the case UI would be greatly appreciated.
Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 08:03 PM - edited 05-28-2024 08:03 PM
Hi @matthew135w ,
I think there is no direct way of creating MRVS on case form. Instead you can follow below steps so that your MRVS data on record producer can be see on case form.
- Create a new "HTML" type field on case form.
- In your record producer script add below code
var mrvs = JSON.parse(producer.YourMRVSVariableSetName);
var mrvsData = [];
var tableHTML = '<table border="1" style="width:100%; border-collapse: collapse;">';
tableHTML += '<tr><th>Column 1 Label</th><th>Column 2 Label</th><th>Column 3 Label</th></tr>';
mrvs.forEach(function(row) {
tableHTML += '<tr>';
tableHTML += '<td>' + row.YourMRVSFieldName+ '</td>';
tableHTML += '<td>' + row.YourMRVSFieldName+ '</td>';
tableHTML += '<td>' + row.YourMRVSFieldName+ '</td>';
tableHTML += '</tr>';
});
tableHTML += '</table>';
current.u_mrvs = tableHTML;
Result:
I have submitted below
final result
In this way you can show MRVS data on any form.
If my answer helped you in any way, please mark it as helpful or correct.