hi,
I wanna use ChronoForms for another language,and it could 'nt save non English data!the java validation code for alpha type just accept English regular expression and i do'nt know how to manage this issue!
please help me to change the alpha english validation code.
thanx
I wanna use ChronoForms for another language,and it could 'nt save non English data!the java validation code for alpha type just accept English regular expression and i do'nt know how to manage this issue!
please help me to change the alpha english validation code.
thanx
Thank you for quick respond.
I have used the custom js code in action part for the load event,but nothing changed + u have mentioned that change the regex expression ,but i didnt know that if i should change it in formcheck-yui.js file,the line:
regexp:{required:/[^.*]/,alpha:/^[a-z ._-]
and edit the alpha part (alpha:/^[a-z ._-]) to (alpha:/^[\u0600-\u06FF])?
or just the line if (!el.value.test(/^[\u0600-\u06FF]+$/i))
in the customAlpha(el) function is ok?
Thank you
I have used the custom js code in action part for the load event,but nothing changed + u have mentioned that change the regex expression ,but i didnt know that if i should change it in formcheck-yui.js file,the line:
regexp:{required:/[^.*]/,alpha:/^[a-z ._-]
and edit the alpha part (alpha:/^[a-z ._-]) to (alpha:/^[\u0600-\u06FF])?
or just the line if (!el.value.test(/^[\u0600-\u06FF]+$/i))
in the customAlpha(el) function is ok?
Thank you
Hi axiom525,
There is no need to edit the formcheck-yui.js. You can is you like but the changes will be over-written when you next upgrade ChronoForms.
As the FAQ says the code should be in a Load JS action in the ON Load event. You may need to drag this action before the Show HTML action. If that doesn't work then there may be a JavaScript error on the page somewhere.
Bob
There is no need to edit the formcheck-yui.js. You can is you like but the changes will be over-written when you next upgrade ChronoForms.
As the FAQ says the code should be in a Load JS action in the ON Load event. You may need to drag this action before the Show HTML action. If that doesn't work then there may be a JavaScript error on the page somewhere.
Bob
This topic is locked and no more replies can be posted.