Click event on button not fires !
I have two buttons . In the first button i put a javascript that invoke a click event on second button but not happening (in second button i have an alert message) .
What is the problem ?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
I have two buttons . In the first button i put a javascript that invoke a click event on second button but not happening (in second button i have an alert message) .
What is the problem ?
Hi Luci,
Why don't you just click the second button?
Because in my project i have this buttons invisible and i want to make this programatically .
I put this javascript code in the click event of first button :
Appery('mobilebutton_2').click();
what is wrong ?
Luci,
It's better to add the alert code as a custom JavaScript function and call it on button click.
Appery('mobilebutton_2').click();
Should have this line of code work, right?
Should be working, we'll check this.
Solved! I tried on a new project with one page.
There seems to be an incompatibility of projects from one version to another.
On every page of the old project if we put this code was not working.
In the new project works. Mystery for now
.
Thanks for your efforts!
Luci,
Thank you for the update! Glad it's working.