@Ehsan Ali beforeLoad can only affect store-value-false fields, or fields on create. A store value false would not persit in aftersubmit, so basically you need to change strategy. Also, User Even scripts execute on the server so there are no cookies. All in all, you probably need to reconsider your scripting strategy there.