Truncated fields to their maximum character length in making custom forms 

Addresses issue #791