hi i want to check a field in DCT for example text area.to check whether that text area contains more than 4000 charecters and if it has do not aloow to save toe dcr and show a message to user. i try................IWEventRegistry.addFormHandler("onSave", FormCheck1);........................................................function FormCheck1(){descItem = IWDatacapture.getItem('/myContainer/Description').getValue(); len=descItem.length; if(len>4000) { alert("error message ."); descItem.setFocus(); return (false); } return (true);}but it doesnt workanybody know how to handle this kind of situation
use onSaveValid instead of onSave.... this event occures after onSave and once the form is validated.... It should work...