- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2021 08:38 AM
Hello,
I have a requirement to add rows to a multirow variable set based off of a selected value from another variable. The dropdown will be numbered 1 through 5. If 4 is selected, 4 single line text rows get inserted. The same applied to all the other selections.
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2021 01:01 PM
Let's take it down a level; this this:
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var mvrs = [];
for (var i = 0; i < newValue; i++) {
var tempObj = {};
tempObj.test_report_number = '';
mvrs.push(tempObj);
}
g_form.setValue('multi_row_variable_set_test', JSON.stringify(mvrs));
}
I hope this helps!
If this was helpful or correct, please be kind and remember to click appropriately!
Michael Jones - Proud member of the CloudPires team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2021 01:01 PM
Let's take it down a level; this this:
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var mvrs = [];
for (var i = 0; i < newValue; i++) {
var tempObj = {};
tempObj.test_report_number = '';
mvrs.push(tempObj);
}
g_form.setValue('multi_row_variable_set_test', JSON.stringify(mvrs));
}
I hope this helps!
If this was helpful or correct, please be kind and remember to click appropriately!
Michael Jones - Proud member of the CloudPires team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2021 01:17 PM
Awesome this worked like a charm! Thanks for all your help!