Is it possible to submit a form without clicking submit button?

Hi,

Wish to seek your expert advice on how I could submit my Form without any human intervention.

My aim is that once an authorized user/member clicks on either of the 2 links bellow, a notification mail will be sent to my inbox containing the chosen state of the code.

Sample URL:
https :// mysite .com/ confirmation? code=12345&state=reject

https :// mysite .com/ confirmation? code=12345&state=approved

My Code:

$w . onReady ( function () {

**let**  code  =  wixLocation . query . code ; 
**let**  state  =  wixLocation . query . state ; 
$w ( "#input1" ). value  =  code ; 
$w ( "#input2" ). value  =  state ; 

button1_click (); 

});

Appreciate your kind advice please.

Thanks.

Hello, you should be able to modify this tutorial for your needs. Instead of calling your function on form submit, you will call the function to send email on your button click.