I have a very simple script that basically needs to set a text field within a replicant container to read only whenever a replicant is added.This line is called in my fnInit script:IWEventRegistry.addItemHandler("/promotions/message","onReplicantAdded",fnHandleImageSizeReadOnlyOnAdd)and the script is straight forward:function fnHandleImageSizeReadOnlyOnAdd(item) var width = item.getChildByName("image_path_width").getName(); IWDatacapture.getItem(width).setReadOnly(true);This doesn't work. I've done alerts to confirm it's getting the correct container path and I get the correct path (/promotions/message[2]/image_path_width). I can also change the script to setValue() and set that field value with no problem. BUT, it seems setReadOnly specifically does not work.I'm wondering if anyone else has ever seen this issue and if there's any solution or workaround.
Geez. It looks like this may be some weird system CSS error instead. The field never turns greyed-out for me BUT you can't edit it. So, it IS read only...just no visual trigger for the Customer to know that. The only indication is they can't type in the text field.Odd.