Catalog item

Deepika Ravindr
Tera Contributor
 
1 ACCEPTED SOLUTION

U_Viswa
Mega Sage

Hi Deepika Ravindr,

 

Try with Onsubmit catalog client script.

 

 

function onSubmit() {
	if(!g_form.getValue("var1_name") && !g_form.getValue("var2_name") && !g_form.getValue("var3_name")){
		alert("Fill atleast one field from the below fields\n Variable 1\nVariable 2\nVariable\3");
		return false;
	}else{
		return true;
	}
}

 

 

View solution in original post

5 REPLIES 5

Siva Jyothi M
Mega Sage

Hi @Deepika Ravindr.,

 

You can write a Onsubmit client script for this.

 

function onSubmit() {
	if((g_form.getValue("title") == ' ' ) && (g_form.getValue("short_description") == ' ' ) && (g_form.getValue("description") == ' ')){
		alert("Please fill one of these fields");
		return false;
	}else{
		return true;
	}
}

 

Mark this answer as correct and helpful if it solves your issue.

 

Regards,

Siva Jyothi M.