Populate select field's options based on another select field

See also: Programmatically change the content of the file field