I need to create a validation rule to check if input password and input repeatPassword are equal
When I submit the form and clear the inputs via this.set(‘newUser’, {}) the validation messages appear - Required field or At least X characters… but it shouldn’t.
Hi @erzzo! Welcome to the Ember Community! It’s great to have you.
I am going to assume that you are using ember-paper@0.2.12. One approach for your scenario is to use a custom validation property on {{paper-input}} that checks if anything is defined for the password as a part of the validation logic:
Thanks a lot @mellatone, it works and I know now how to do such things. And the second question? After submit I need to clear the form but all required error messages appearing.
Yes, but It throws errors because of the input validators. But I found a way to hack it, the forms itself does not have a function to do that. But I use now a different library and all is working well.