add support for programmatically adding fields to a generic formval