How do I link a Visual Composer button to a popup form?

In the VC editor, add the button then enter the button text and do not enter a Link URL.

Scroll down in the button settings and at the option Advanced on click action click Yes and enter the code below as the On click code.

1
jQuery('.quform-popup-link-1').click();
jQuery('.quform-popup-link-1').click();
  • Replace the number 1 with the form ID

Then add new Text Block element to the page in VC, and add the Quform popup form shortcode as the content, with no trigger content.

Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy