You can’t do it easily. You can send AJAX requests only to the same server your site is on.
To send such request to another server, you’ll have to use CORS (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS).
And I don’t believe that HubSpot will allow you to set proper headers…
Related Posts:
- Contact form 7 select box different value-text than content-text in option [closed]
- Let readers suggest edits from the frontend
- Where should my plugin POST to?
- Plugin development: how to create a form and get custom data?
- Multi step form, custom plugin
- shortcode doesn’t work
- Contact Form 7 plugin refreshing page on submit [closed]
- Template plugin for blog posts? [closed]
- Plugin form unable to process
- Is there any good tutorial to write custom login, registration and password recovery forms? [closed]
- WordPress plugin form not saving data
- jQuery Plugin to use WordPress functions in AJAX request
- Add form fields dynamically on button click
- How to trigger $_GET request within admin plugin page?
- Retrieving a Value from a wp-database
- Custom CSS for plugin form
- Form doesn’t submit on second submit call
- WP plugins for building a database?
- Custom form action to handle data inside a plugin
- wp_create_nonce function doesn’t work inside a plugin?
- Image upload and other options in the same plugin settings form?
- When using Simple Fields plugin, how do I pull the information out of the database to display on a page?
- Creating an online questionnaire form – by Importing the questions from a spreadsheet?
- Can I use custom CSS and js plugin to put JavaScript in to validate my forms
- Using a custom plugin to capture input data via Ajax and PHP
- auto populate list of questions if user select a category xyz
- WordPress WPforms customization
- Submit page limited in time to upload image
- Adapt PHP form action for WordPress?
- Ajax fail and get 504 error
- How to insert HTML/JavaScript form into WordPress page? [closed]
- Trying to fix form resubmition with PRG (Getting error: Cannot modify header information – headers already sent by)
- How do I make a child theme I made POST through a 3rd party plugin?
- How to fetch form data and show it to my page?
- Plugin to create forms using HTML [closed]
- Submit custom form from post content and execute in plugin
- Char limit on custom blog-post form? [closed]
- easy steps to make front end form without plugin
- Form that generates an ID for the customer
- Editing a text file from plugin menu
- Ajax Plugin Not Echoing Response
- Plugin that will output submitted form data for user? [closed]
- How to handle forms from sidebar widgets – Processing $_POST variables using get_field_name()
- How do I add the same contact form to multiple wordpress sites and capture the response in one place or database?
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- How can ι create my own (custom) WordPress table/list?
- Gravity Forms returns to odd position
- Storing The Data Collected by Ninja Forms into Another (custom) Database [closed]
- WordPress Multi-Step Product Search
- File Uploader – Upload without adding to Media Library
- add_meta_box creating default form field types
- Form Plugin for Api Requests which is used via Shortcode
- Echo out element to another page.
- Storing Form data in a different database
- Contact Form 7 “non-selectable” options in a drop down [closed]
- Using AJAX to run SQL statement and populate dropdown
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- Looking for a simple checkout plugin [closed]
- Redirect plugin after form submit or show errors
- Plugin for visitors to edit content without logging in? [closed]
- How do I send the contents of a form to deliver to the already existing custom field in the wordpress theme
- Linking form to user meta fields
- WordPress Forms Advance Conditional Logic
- get wpforms ID value from ACF text field
- WordPress – send digital product with custom email
- How to create a form where you can select multiple recipients, based on a list of website users?
- WordPress search input in database, to edit information via form and update the database
- WPForms Custom Redirect not working
- Submitting form to PHP
- How can I implement radio buttons with icons in Contact form 7?
- Hide button after form submit and save state to localstorage
- Meta Key array building with multiple input values from fields
- Plugin to manage form submissions on admin panel
- submit form data to wordpress existing database table using my plugin
- Page takes on two different formats
- After form submission want to show success message in the form page
- get/show Last ID
- WP_Filesystem usage within a block of code
- I created a custom form in HTML/CSS and now I need it to submit … should I create custom PHP or is there a plugin I can use?
- Is there a function to search for a wildcard value when calling a shortcode?
- Create user assessment and use results in sql query
- Create plugin with form in post and submit it to specific form
- Link Forms on WordPress
- Custom Form only for admin
- Capturing POST data
- Creating fields in the database
- Allow users to enter and edit data in one-to-many configuration
- Undefined variable _POST
- Plugin Admin Page Ajax-Admin call returning 0, URL set correctly. Implemented localized scripts but did not fix it
- How to prevent page load on form submission
- Can’t edit Contact Us form on front page
- Plugin Beauty Contact Popup Form with while loop
- Build a Boat Form Plugin [closed]
- Redirecting to page on form submit – Revue plugin
- WP Donation Form with custom payment API
- How can I add a zip code service availability checker in WordPress without Woocommerce? [closed]
- i need to resive data external api and show user
- I am trying to add form using ACF plugin and acf_form() function, but my user fields dont show up properly
- add to cart linking to add to cart page
- Missing Contact Form/Form Default Plugin in WordPress