Integrate a Salesforce Form Handler with a Wix Form

Hi community members and experts,

I just built a website using Wix recently. Although Wix has its own form, I still want to use Salesforce (Pardot marketing automation) to capture the leads from the form. In salesforce, i get this information to integrate form handlers with a Wix form:

https://help.salesforce.com/articleView?id=pardot_form_handlers_integrate_form_handler.htm&type=5

However, I do not know how to find the Wix form’s code to change the post URL to Salesforce handler URL. Can somebody help me, please?

Thanks.

You are best suited going through Salesforce won support and asking them how to integrate their own forms into Wix as it is a third party code provider and Wix will not provide support for third part codes that it has not fully tested itself.
https://support.wix.com/en/article/using-iframes-to-display-visible-content-on-your-site

You would most likely have to get the form in html code and place it in your page in a html iframe, as like shown here.
https://www.picklewix.com/single-post/Salesforce-Forms-on-Wix

if you are wanting to pass data from a page to a html component or from the html component to a page, then you can look at using html component and the getMessage and postMessage functions.
https://support.wix.com/en/article/corvid-working-with-the-html-element
https://www.wix.com/corvid/reference/$w.HtmlComponent.html

However, as they have their own API, you are much better and more secure using the companies own API and using either Wix Fetch or Wix HTTP Functions.
https://help.salesforce.com/articleView?id=pardot_sf_connector_understanding.htm&type=5

See here for an example.
https://www.wix.com/corvid/forum/wix-tips-and-updates/example-myapi-and-myapiclient

https://www.wix.com/corvid/reference/wix-fetch.html
https://support.wix.com/en/article/corvid-accessing-third-party-services-with-the-fetch-api

https://www.wix.com/corvid/reference/wix-http-functions.html
https://support.wix.com/en/article/corvid-exposing-a-site-api-with-http-functions

Or just be lazy and do it all through Zapier as shown here.
https://www.wix.com/corvid/forum/community-feature-request/zapier-triggers-and-action-for-wix-code/p-1/dl-5c3493560380c9001cea2773