But often data added this way isn’t recognized due to some validation limitations and the form cannot be submitted unless the data is inputted by typing or pasting.
How could I simulate actual typing and/or pasting with JavaScript as a more natural alternative to input it with value?
If you’re changing an element via javascript, you need to manually fire the change event on the element for it to be recognized for validation. Why, I don’t know (my guess is a method to slow down robots) but it’s the way it works.