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

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: 

Rocio_1-1679336669308.png

 

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

Community Alums
Not applicable

Hi @AnveshKumar M , thank you for your answer! I tried but it didn't work.