I hope you're all doing well. Currently, I'm utilizing an intel core i5 vpro laptop for my programming tasks. I'm currently facing an issue with JavaScript, specifically regarding the automation of form submission based on a "Yes" or "No" field.
Here's the scenario: I have a form where users can select either "Yes" or "No" to indicate their satisfaction. Once they make their selection, the form should automatically submit. The "Yes" or "No" value is included in the URL.
To achieve this one-click satisfaction option, I've attempted to implement the following JavaScript code:
<br> $(document).ready(function() {<br> if ("{INSERTANS:OneClick}" == "Yes")<br> $('#movesubmitbtn').click();<br> });<br>
Unfortunately, this code doesn't seem to work as intended. I've even tried changing the "Yes" value to "Y" but still no luck.
I would greatly appreciate any assistance or suggestions from the community. If you have encountered a similar issue or have expertise in JavaScript, your insights would be invaluable.
If anyone has encountered a similar problem or has suggestions on how to make the automatic form submission work, please share your thoughts in this thread. Your help will be greatly appreciated.
Thank you all in advance for your support and expertise!
Best regards,
Tammy Gombez
Top comments (0)