on bind, format input value