Abort Form Submission

Nag9
Tera Expert

Hi all,

I have the below requirement.

In my catalog form, I have a variable called vendor(string). When the form is submitted, the information is saved in a custom table with the same column name (vendor).

So, if I enter any text in the variable vendor field, it should check the data in the custom table vendor field and prevent form submission if duplicate data is found.

 

How could we achieve this?