Hi, I hope there is anyone out here that can help me with my deadline. I have almost finished my site, but cannot seem to set up an automated email after someone clicks a ‘send’ button.
The trouble is that according to all wix support pages about this, there is supposed to be an ‘onClick’ event in the properties panel, but on mine it’s not there. I only have the first 4 events in my panel. Also, I am not good with code, I tried to reproduce a tailormade one with an onClick event function, but it does not work. I have a deadline to send in a link with this opt-in page today, so I hope anyone can help!
Hi Karina ,
Could you please show some screen shot of that? Because It seems that you trying to do onClick function on an element which is not button, in this case you can use this snippet to allow onClick on it :
$w("#myElement").onClick( (event) => {
//your code here
} );
for more information please take a look - here
Hope this helps!
Best,
Mustafa
#contactForm3 is a group of three elements ( first name , Email address, and the button ). You should choose/click on the button itself to have the onclick function in the property panel.
the button is not clickable, I can only click on contactform3 as a whole. Any thoughts? And if I manage to choose the button itself, is it the code shown in the printscreen the one I am supposed to use? Thx again.
Karina, I don’t know whether you figured this out - I had the same problem. I guess some forms do not have the button separate. I ended up adding a new contact form and it has the onClick property.