inline snippet to enable/disable field(s) in a popup - works, but only after field changed I have some inline JS that enables/disables one field (toggles between “read” and “readonly”) based on the value of another field. The fields are both in a popup. The code works, but only once the popup has come up and I’ve set/reset the controlling field. I can’t get it to initially enable/disable the controlled field. Here is the code, taken from a sample that Zach gave me. It works perfectly elsewhere, but doesn’t work initially for my popup. ---------- snip, snip ---------- (function(skuid){ var $ = skuid.$, $M = skuid.model.map(); $(function(){ var AccountModel = $M.NewAccount, Account = AccountModel.getFirstRow(); // Register a listener on the Status field. // When it is changed, we may need to rerender some fields // to make them read-only. var listener = new skuid.ui.Field(Account,AccountModel,null,{ fieldId: ‘Status__pc’, register: true }); var fieldsToDisable = [‘Death__pc’]; var deathHandleChange = function(newValue){ $.each(AccountModel.registeredLists,function(){ $.each(th