swissdoode Posted August 10, 2021 Share Posted August 10, 2021 Hi everybody After some serious tampering, I was finally able to implement the «InputfieldPassword» in my Frontend. (interestingly, the field seems to be made for the BE only, so I had to manually add the JS/CSS files - took me a while to figure that one out). I'm using the Form-API to create the form, with this at the end: $passwordField = $modules->InputfieldPassword; $passwordField->attr('name', 'password'); $form->add($passwordField); The fields are being rendered, the criterias I set are working, too. When I fill in the form, the matching password-function recognises the 2nd password and indicates that the passwords match. BUT: When I hit the submit-button, I get an error telling me to «repeat the same value» pointing to the password-repeat-field (Javascript validation is turned on for the form, so the form doesn't get submitted, but the JS seems to validate the form). Why is that??? Am I missing something? See attached image for clarification. Edit: When I turn off the JS-validation, the form is submitted correctly (I'd like to keep the JS-validation, though). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now