Scriptcase disable form validation for a given field

Dear all

I have a form application with a specifique need.
The field type in the database is an integer that use an automatic lookup method. This is the SQL “Select Id, Name From Customer”

In the client side I used Select2 https://select2.github.io/ with the ability to create new customer when it not exists. the problem became when the form is submitted with a new customer Scriptcase Validation failed because the value submitted is not a integer but a string.

My worry is how I can in the same time allow a field to accept “INTEGER | STRING”
or disable only the validation in the concerned field.

ASK: in the scope of onValidationFailed() which variable can i use to know which field failed

Did you get this to work? How did you implement select2?