Is there any way to stop user to submit catalog item in onchange client script ?

priyankar umesh
Tera Contributor

I got a requirment that to be done in onchange client script ! I m not able to stop user to submit the record in onChange client script!

3 REPLIES 3

Ankit Rawat
Giga Guru

Hi @priyankar umesh ,

 

Can you please explain more why you want to stop users to submit the form, is there any field you want to restrict?

 

Regards,

Ankit

There is one field (list collector type ) ,if user will select less or equal to 2 record then it should show an error message , and user should not be able tosubmit the record.

I done the above requirment but i m not able to stop user to submiting the form .

this requirment should be done through onChange client script

Hi @priyankar umesh ,

 

Recommended option is to use OnSubmit Client script.

 

or you can use this method also-

 

Make your onchange field (list collector field) mandatory. If user trying to enter wrong value in onChange field clear the field value it means when user trying to submit the form field remains empty i.e. mandatory and it will restrict the form submission.

 

Regards,

Ankit