掲示板
Web Form portlet server side validation getting failed.
8年前 に Sandip Patel によって更新されました。
Web Form portlet server side validation getting failed.
Regular Member 投稿: 205 参加年月日: 11/01/05 最新の投稿
Hi,
I am using Lifray 6.1 EE web form portlet and I have put some validation of email address. I am using below script to validate.
var emailExpression = /^[a-zA-Z0-9\-_]+(\.[a-zA-Z0-9\-_]+)*@[a-zA-Z0-9\-_]+(\.[a-zA-Z0-9\-_]+)*\.[a-zA-Z]{2,4}$/;
if(!currentFieldValue.match(emailExpression)){
return false;
}
else
{
return true;
}
When I click on Save button then client side validation script return true but from server side validation getting failed and gives error as below.
missing ] in index expression (Validation Script#13)
I have checked code and found that WebFormPortlet.java -> validate() method use WebFormUtil.validate(fieldValue, fieldsMap, validationScript) method and its give me above exception.
Has anyone such issue like this client side validation working but not server side.
I am using Lifray 6.1 EE web form portlet and I have put some validation of email address. I am using below script to validate.
var emailExpression = /^[a-zA-Z0-9\-_]+(\.[a-zA-Z0-9\-_]+)*@[a-zA-Z0-9\-_]+(\.[a-zA-Z0-9\-_]+)*\.[a-zA-Z]{2,4}$/;
if(!currentFieldValue.match(emailExpression)){
return false;
}
else
{
return true;
}
When I click on Save button then client side validation script return true but from server side validation getting failed and gives error as below.
missing ] in index expression (Validation Script#13)
I have checked code and found that WebFormPortlet.java -> validate() method use WebFormUtil.validate(fieldValue, fieldsMap, validationScript) method and its give me above exception.
Has anyone such issue like this client side validation working but not server side.