I have an extract form in which there will be a pop-up survey to ask why they did not start filling out the form after 5 seconds. However, I need to check if the user actually entered the data, and not the data entered by the browser autofill function (any pre-populated data set in markup that I specifically ignore in javascript or jQuery).
Currently my solution is for setTimeout to run a function that checks for a variable (true or false) that is set to false in the jQuery.focus or .change event for input types (input, selection, text area). However, since javascript can be loaded after the user can use the form elements, I have to check if the user entered the data before the poll pops up.
Is it possible to distinguish between user-entered data and data entered by the browser if javascript is loaded after the user has done something in the form fields?
source share