Skip to content
COSMY Forms

Install a form on WordPress and Elementor

Add the setup script once and point an existing Elementor button to your form.

Add the setup script

  1. In COSMY Forms, open Install for a published form and copy the Setup script.
  2. Use your site’s existing way of adding code to <head>. If Elementor → Custom Code is available, choose <head> and set the display conditions for the pages you need.
  3. Open the published website page and verify that cosmyforms.js loads once.
The setup script panel on the Install screen, showing the permanent cosmyforms.js script and its copy button.

Link the form to an Elementor button

If WordPress removes the snippet when saving, ask the site administrator to check your permission to add HTML and JavaScript.

  1. In COSMY Forms, copy the link from Your own website button → Existing button.
  2. Edit the page in Elementor, select the Button widget, and paste the link with #cosmy-popup into the Link field. Turn off opening in a new tab in the link options.
  3. Update the page. Try the button on the live page on a phone and a computer, then send a test submission.
  4. For a floating control, configure it in COSMY Forms and add its button code with an HTML widget on the page or in a shared template.

Need help with a form?

Create a ticket