Add the "compileFormFields" hook (see #6253)