make IsRequired and IsTrim optional in opFormItemGenerator (fixes #3463, BP from #3428)

make IsRequired and IsTrim optional in opFormItemGenerator (fixes #3463, BP from #3428)

(cherry picked from commit 0962d48b8fbfa2da9be0d65764a569bf9ccfd1e7)