Why do I get an error in an Onchange Client script for Multi Row Variable Set when I parse the value

Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2023 11:28 AM
Hello! I created an OnChange Catalog Client Script and I get an error when I parse the Values from the Multi Row Variable set. This is the configuration of my Catalog Client Script:
And this is the code that I'm getting an Error.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading) {
return;
}
var multiRowVariableSet = JSON.parse(g_form.getValue('multiRow_variableSetTest'));
}
And the error is [SCRIPT:EXEC] Error while running Client Script "ONCHANGE - Test": SyntaxError: Unexpected end of JSON input
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2023 07:55 AM
Hi @AnveshKumar M , thank you for your answer! I tried but it didn't work.