Skip to content Skip to sidebar Skip to footer

Unable To Fill Out The Text Field And Submit Automatically

What I am trying to accomplish is to populate the text box for 'Reason for Access' with the word 'TEST' using Tampermonkey. (I'm very new to using Tampermonkey & UserScript so

Solution 1:

When submitting the form with javascript, you should be using submit() on the form element. I tested the other code and it seems to add the value to the textbox just fine.

var FormSub = document.getElementsByName("profileForm");
FormSub[0].submit();

Post a Comment for "Unable To Fill Out The Text Field And Submit Automatically"