Auto submit

303 views
Skip to first unread message

AYUSH JAIN IPM 2020 -25 Batch

unread,
Feb 17, 2022, 5:43:54 AM2/17/22
to Autofill Extension
After filling up the form, how to auto submit it? 

For reference, I am trying to auto-submit a google form. I can fill the form but I still have to click on the submit button.

Can I automate this process?

Alex B

unread,
Feb 17, 2022, 6:14:41 AM2/17/22
to Autofill Extension
I am adding formfield - javascript code with the value - document.querySelector('button[name="button_1"]').click();

четверг, 17 февраля 2022 г. в 15:43:54 UTC+5, AYUSH JAIN IPM 2020 -25 Batch:

AYUSH JAIN IPM 2020 -25 Batch

unread,
Feb 17, 2022, 6:20:03 AM2/17/22
to Autofill Extension
Doesn't seem to work 

Can you try this code with this form


Thank you

Autofill Extension

unread,
Feb 17, 2022, 6:09:16 PM2/17/22
to Autofill Extension
Try this JS rule:

let form = document.getElementById('mG61Hd');
form?.submit();

AYUSH JAIN IPM 2020 -25 Batch

unread,
Feb 18, 2022, 12:33:20 AM2/18/22
to Autofill Extension
Works.

Thank you

Autofill Extension

unread,
Feb 18, 2022, 3:47:43 PM2/18/22
to Autofill Extension
Cool, glad it worked. You can use this same technique for any form -- if adding click() to submit button doesn't work, use submit() on the form itself.

Lilian Kwok

unread,
Feb 24, 2022, 8:01:22 PM2/24/22
to Autofill Extension
I tried but it goes into a loop and does not submit :(

Autofill Extension

unread,
Feb 25, 2022, 5:59:58 PM2/25/22
to Autofill Extension
Lilian, every form is different and may require different solutions. Can you provide URL?

Nattiga Sukkee

unread,
Mar 4, 2022, 4:20:13 AM3/4/22
to chrome-...@googlegroups.com
Hello, I'm having this problem too. I'm using your Javascript with autosaved google forms that it need to be logged in google account. Do you have any code that works for this form?   


Thank you !

ในวันที่ ส. 26 ก.พ. 2022 06:00 Autofill Extension <chrome-...@googlegroups.com> เขียนว่า:
--
You received this message because you are subscribed to the Google Groups "Autofill Extension" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chrome-autofi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chrome-autofill/418f05ba-b57d-49e6-95a2-7873e50e0c00n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages