Title: Javascript API call the form on any button click
Last modified: April 11, 2023

---

# Javascript API call the form on any button click

 *  Resolved [sandhiyawebsitica](https://wordpress.org/support/users/sandhiyawebsitica/)
 * (@sandhiyawebsitica)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/javascript-api-call-the-form-on-any-button-click/)
 * Needed JavaScript void trigger toggle the form on click “get started” button
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-api-call-the-form-on-any-button-click%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [Karina](https://wordpress.org/support/users/karinapremio/)
 * (@karinapremio)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/javascript-api-call-the-form-on-any-button-click/#post-16646387)
 * Hey [@sandhiyawebsitica](https://wordpress.org/support/users/sandhiyawebsitica/),
   thanks for your message. I’m afraid we are not entirely sure what you mean – 
   can you please reach out with more details at [hi@support.premio.io](https://wordpress.org/support/topic/javascript-api-call-the-form-on-any-button-click/hi@support.premio.io?output_format=md)
   and we’ll do our best to help you out?
 *  Thread Starter [sandhiyawebsitica](https://wordpress.org/support/users/sandhiyawebsitica/)
 * (@sandhiyawebsitica)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/javascript-api-call-the-form-on-any-button-click/#post-16647740)
 * hi, 
   I want my WordPress website to open the sticky form on button click, does
   the plugin has JavaScript API call function like the GIF below, unfortunately
   javascript:void(sticky_form_open()) is not opening the form.[https://premio.io/wp-content/uploads/2020/08/jscontactform.gif](https://premio.io/wp-content/uploads/2020/08/jscontactform.gif)
 *  Plugin Support [Karina](https://wordpress.org/support/users/karinapremio/)
 * (@karinapremio)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/javascript-api-call-the-form-on-any-button-click/#post-16649504)
 * Hey again, yes, you can launch or close the widget with JavaScript. You can read
   more about it here: [https://premio.io/help/mystickyelements/how-to-launch-the-contact-form-using-a-link-or-javascript-function/](https://premio.io/help/mystickyelements/how-to-launch-the-contact-form-using-a-link-or-javascript-function/)
   
   If you have any further questions, please reach out via Messenger (m.me/premio.
   io) or by email at [hi@support.premio.io](https://wordpress.org/support/topic/javascript-api-call-the-form-on-any-button-click/hi@support.premio.io?output_format=md).
   We’ll do our best to help you out!
 *  Thread Starter [sandhiyawebsitica](https://wordpress.org/support/users/sandhiyawebsitica/)
 * (@sandhiyawebsitica)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/javascript-api-call-the-form-on-any-button-click/#post-16651322)
 * thanks, it works!
 *  Plugin Support [Karina](https://wordpress.org/support/users/karinapremio/)
 * (@karinapremio)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/javascript-api-call-the-form-on-any-button-click/#post-16653130)
 * So happy to hear and thanks for the update! Please feel free to reach out at 
   any time if you need any help!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Javascript API call the form on any button click’ is closed to new replies.

 * ![](https://ps.w.org/mystickyelements/assets/icon-256x256.gif?rev=2901774)
 * [All-in-one Sticky Floating Contact Form, Call, Click to Chat, and 50+ Social Icon Tabs - My Sticky Elements](https://wordpress.org/plugins/mystickyelements/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mystickyelements/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mystickyelements/)
 * [Active Topics](https://wordpress.org/support/plugin/mystickyelements/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mystickyelements/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mystickyelements/reviews/)

## Tags

 * [button](https://wordpress.org/support/topic-tag/button/)

 * 5 replies
 * 2 participants
 * Last reply from: [Karina](https://wordpress.org/support/users/karinapremio/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/javascript-api-call-the-form-on-any-button-click/#post-16653130)
 * Status: resolved