Hi,I have made Asynchronous validation in few of my fields as shown below,
{
name : "alfresco/forms/controls/TextBox",
config : {
fieldId : "PRODUCT_NAME",
label : "Product Name",
name : "prop_cm_name",
description : "Provide a Unique Value for the Product Name.",
requirementConfig : {
initialValue : true
},
validationConfig : [ {
validation : "validateUnique", //This doesn't do case-insensitive validation
itemsProperty : "response.productNameList",
errorMessage : "The Product Name already exists!",
publishTopic : "ALF_CRUD_GET_ALL",
publishPayload : {
url : "retrieve-library-list?retrieve=Product%20Library"
}
} ]
}
}But the above code reports an error "The Product Name already exists"
only when I type the exact case as it is returned by the Json Array, sample JSON Response shown below,{
"productNameList": [
{
"prop_cm_name": "Banner Small"
},
{
"prop_cm_name": "Business Vertical"
},
{
"prop_cm_name": "Banner Medium"
},
{
"prop_cm_name": "Business Accessories"
},
{
"prop_cm_name": "Banner Large"
}
]
}For example, if I type "Banner Small"
, I'll get the error, but if I type "banner small"
, I won't get the error.Is it possible to do the validation without considering the case.Thanks in Advance,