Reputation: 558
I try to make 2 page (signin and signup) using app-route and iron-pages, which both of them contain form with same form id. This is the Sign In template and the Sign In submitForm script. This is the Sign Up template and the Sign Up submitForm script.
When I click submit button in signup page, validation always return false (no input error). When I change the form ID so signin form ID different with signup form ID, I can do signup correctly. Is it a right behaviour? I think I can use same ID to both of the form, since they're in different element.
Upvotes: 0
Views: 100
Reputation: 558
As mentioned by @a1626, I should use this.$.form which is search for local DOM instead of document.getElementById.
Upvotes: 0