Not able to submit the catalog item form

Karthika Pawar1
Tera Contributor

Before submitting the item we need to attach an attachment. I wrote onsubmit client script but not able to submit the form. Whenever I am clicking on order now the form is not submitting.

This is the script - 

PushpaPawar1_0-1689786845908.png

 

1 REPLY 1

Ruchi Agrawal
Tera Expert

Hello @Karthika Pawar1 

 

1st way:

To perform an onSubmit check if an attachment is attached, you could have an onSubmit Catalog Client Script like:

RuchiAgrawal_1-1689833814343.png

 

2nd way:

Mandatory Attachment checkbox-True.

RuchiAgrawal_0-1689833593336.png

 

Please mark my response correct/helpful as applicable!

Thanks and Regards,

RUCHI AGRAWAL