I am attempting to set the value of a field and then set that field to readonly using the setReadOnly function. I've gotten this readonly functionality to only work part of the time. If I insert alert statements right before the setReadOnly function, it appears to always work, but if I remove it the random work/don't work continues. Does anyone know if there is an issue with the setReadOnly function? Here is the code that is run:function setObjectId (r) { var objectIDItem = IWDatacapture.getItem("/bannerad/objectid"); objectIDItem.setReadOnly(true); objectIDItem.setValue(r); objectIDItem.setFocus();}I've also tried changing the order of the calls but have had no luck resolving this yet.Thanks,Craig