I am using this macro in onLoad event to protect some fields - depends on other variable. It works well, but when I change the value of protected fields by script, it is visible in the form, but not saved. If I print the value in onBeforeInsert - it is empty. If I assign a value to the field in onBeforeInsert, not earlier - it works OK and the value is saved to the database. Is it a bug or a feature?
type the same macro in onRefresh,