Fixed a doc example on custom forms. Thanks to GrivIN and benspaulding for patches.