How to limit the rows in the multi-row variable set on the catalog form ?

jatinder1
Tera Expert

Hi All,

How can we limit the rows in the multi-row variable set on the catalog form ?

The number of rows should not exceed 5.

 

Thanks !!

22 REPLIES 22

On Madrid "variable set attributes" field is not available.  

 

So kindly refer the thread which i have mentioned and give a try. 

Sample code: I have tested it. 

 

Write on submit catalog client script on your catalog form level. 

 

function onSubmit() {



	var gr = g_form.getValue('Internal name of your variable set').split(',');
	
	if(gr.length > 5){
	alert('you can not submit more than 5 rows on MRVS');
	return false;
	}

}

 

 

If my answer helped you, kindly mark it as correct and helpful.

Hey Harsh,

It is working fine for me. Thanks for your help !!

 

glad it helped. 

 

if my answer helped you, kindly mark my answer as correct and close this thread. 

awww.. thank youuu