I am using Swift 4 and iOS WKWebView in Xcode to go to specific commercial websites and when a user saves his login information to their iOS device (email and password), it populates those fields and submits. I know there are other options for autofilling fields, but I need to do it this way given the project I'm working on.
I autofill the login by using the textfield's ids like this:
This method works with basic forms, but with more complex forms it seems (it's using AngularJS Form Validation I believe), you can't just do an autofill and push submit. It'll say this:
I noticed that if you type then delete a random letter into each field after they have been autofilled, the form recognizes the fields as being filled correctly. I think it's because they have the fields as being "required," and normally an input/change event occurs on the website to recognize input in the textfields (just a guess).
If anyone could help me with this issue, I would seriously appreciate it.