Validation

Hello, I have written method to validate the length of Item_id to 20. But there is error while attaching this method to Itemtype.Whwre should I attached this method on client event,server event,action or form events?? var inno = this.getInnovator(); var ItemId = this.getProperty("_item_id"); if (ItemId == null) { return inno.newError("Please provide a _item_id"); } if (ItemId.Length != 20) { return inno.newError("_item_id needs to be 20 characters."); }
Parents Reply Children
No Data