Do you have to run ampscript on cloudpages?

Do you have to run ampscript on cloudpages?

Yes, it has to be iframed, rather than pasted as HTML like the web-to-case form, because AMPScript has to run on a CloudPage both to process and to leverage Marketing Cloud Connect. This solution assumes that you have Salesforce and have configured Marketing Cloud Connect.

How to create a Sales Cloud-integrated lead capture form?

In this case, we are using post, which appends form-data inside the body of the HTTP request (data is not shown is in URL). The RequestParameter (‘PAGEURL’) function reloads the page when the form is submitted, posting the form parameters back to the same page, which are then retrieved by the RequestParameter () AMPscript functions.

How is ampscript used in Salesforce cloud connect?

With Marketing Cloud Connect, there is also a stream of Salesforce data flowing back into Marketing Cloud in the form of synchronized data extensions, which are typically refreshed every 15 minutes. This will allow us to use the various lookup functions in AMPScript to speed up some processes.

Where does the ampscript go on a form?

The AMPscript needs to be placed at the top, as it should be evaluated upon form submission and prevent the form fields from being displayed after it’s been submitted. In the below script, we use the CreateSalesforceObject function to create a new Lead:

How is cloudpagesurl used on a landing page?

The following HTML is used on the landing page. The _subscriberKey personalization string is used to retrieve a corresponding value from a Data Extension. The CloudPagesURL function returns the page URL of the landing page appended with an encrypted query string with Subscriber data.

What is the subscriberkey string in cloudpagesurl?

The _subscriberKey personalization string is used to retrieve a corresponding value from a Data Extension. The CloudPagesURL function returns the page URL of the landing page appended with an encrypted query string with Subscriber data. For example: https://pub.exacttarget.com/adytgmabc?qs=bfd0bc86b7b0dc08be758fc47e321b5e

How to retrieve the parameters of cloudpagesurl function?

By using the AttributeValue function, you can retrieve these values for the parameters in your CloudPage. For example, suppose you have a link from an email to your customer preference page hosted on a CloudPage. We are sending to a subscriber with the subscriber key of “003j000000Tn3su.”