enabled example
Suppose you have a checkbox to echo output to a file and an entryfield for the file name. When the checkbox is unchecked, you disable the entryfield:
function outputFileCheckbox_onChange()
form.outputFileEntryfield.enabled := this.value