Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preloaded data not validated by EZForm if validationMinCharacters > 0 #25

Open
ormast opened this issue Jun 25, 2013 · 2 comments
Open

Comments

@ormast
Copy link

ormast commented Jun 25, 2013

Hey Chris,

I'm trying to configure EZForm framework and have some issues. When I have some existing data in textfields after viewDidLoad, validation not working if textField.validationMinCharacters > 0. I've tracked updateValidityIndicatorForField method, it's sending null to isValid method. When I start typing something in this field, the validator starting work as expected. Can you point me to the right direction, where to fix it? Thank you

P.S. the textField already has valid data, but isValid returns null (FALSE)

@jessedc
Copy link
Contributor

jessedc commented Jun 25, 2013

Hey Ormast,

How are you setting your existing values on your form field in viewDidLoad ?

You need to make sure you set the value of the field correctly, not just set the text on the UITextField.

If you're not using setFieldValue:canUpdateView: or setFieldValue: then try that.

If you are, then post some of your code and I'll try and help.

Cheers,

@nessalauren5
Copy link

@jessedc I had the same problem and using the setFieldValue:canUpdateView worked for me. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants