Javascript to click "Submit" button (without ID) -----Guidance needed

456 views
Skip to first unread message

SG Mike

unread,
Sep 21, 2021, 9:02:42 PM9/21/21
to Autofill Chrome Extension

Need help to use JavaScript to click submit button (without ID), I try this but does not work :

docuement.querySelector('input[type*="submit"]').submit();

the form link is here:


Hope someone to help me with the Javascript. Thanks

Regards

SGmike

Autofill Chrome Extension

unread,
Sep 28, 2021, 3:00:41 PM9/28/21
to Autofill Chrome Extension
There doesn't appear to be a submit button on this form. However, you can still submit the form this way:

let gForm = document.getElementById('mG61Hd');
if (gForm) {
  gForm.submit();

SG Mike

unread,
Sep 28, 2021, 8:17:11 PM9/28/21
to Autofill Chrome Extension
let gForm = document.getElementById('mG61Hd');
if (gForm) {
  gForm.submit();

Have try it , the above JV script cannot submit. It just go in loop with the clicking but not submission.

Autofill Chrome Extension

unread,
Sep 30, 2021, 7:03:28 PM9/30/21
to Autofill Chrome Extension
You're right -- I just tried creating rules for this form and it's not autofilling. The JavaScript rule works, but the normal rules don't, so it's reloading the page because not all fields were autofilled.

Thanks for reporting, I'll mark this as a bug and look into it.


Autofill Extension

unread,
Dec 31, 2021, 4:17:05 PM12/31/21
to Autofill Extension
Hi, I was finally able to look at this problem over the holiday break and got it fixed in v10 (to be released shortly):


I set a 1s delay (you can try 0.5s if it works for you), and my rules look like this:

SG Mike

unread,
Jan 1, 2022, 12:59:57 AM1/1/22
to chrome-...@googlegroups.com
Thanks for the assistance. 

Best Regards, 

Michael Leong

On 1 Jan 2022, at 5:17 AM, Autofill Extension <chrome-...@googlegroups.com> wrote:

Hi, I was finally able to look at this problem over the holiday break and got it fixed in v10 (to be released shortly):
--
You received this message because you are subscribed to a topic in the Google Groups "Autofill Extension" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chrome-autofill/_BsqyHzwK_c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chrome-autofi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chrome-autofill/1e253bd0-d64e-442f-8fec-53793e89d0b7n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages