vekexasia / android-edittext-validator

Android form edit text is an extension of EditText that brings data validation facilities to the edittext.
MIT License
1.45k stars 378 forks source link

set optional field #59

Closed j2emanue closed 6 years ago

j2emanue commented 7 years ago

can you make an option that allows blanks. for example sometimes i have a field and its an optional field , so it can be blank. how to set an optional field that can either have data or not ?

vekexasia commented 6 years ago

hello @j2emanue just use the emptyAllowed attribute set to true . Take a look at the README for more infos :)