Hello,
Thanks, now i understand more about validate param in XML, is there
any tutorial about this...
Ok, Regarding Client side validation, i change my javascript to this:
window.addEvent('domready', function() {
document.formvalidator.setHandler('testval',
function (value) {
alert('test');
return (value==123);
});
});
and XML to this:
<field name="testfield"
type="text"
label="COM_BENGKEL_TESTFIELD_LABEL"
description="COM_BENGKEL_TESTFIELD_DESC"
class="inputbox validate-testval"
validate="testval"
size="45" />
the problem still exist, it can submit form even the value is not
'123', does client side validation works on submit ?