Add maxlength form element code.