RequestParameter()
Returns the value of a parameter from a form field or landing page URL parameter. This function can also retrieve parameters from an encrypted query string generated by the CloudPagesUrl() function.
This function behaves the same way as the QueryParameter() function. We retain both functions in order to preserve backward compatibility.
The RequestParameter()
function has one parameter:
queryParameter
(string): Required. The parameter to retrieve the value of.
To use this function, pass it the name of the query parameter that contains the value you want to retrieve.
For example, an email can contain a link to a landing page that uses the CloudPagesUrl()
function to include parameters, as in this example.
You can use this information to personalize the landing page. This example shows how to retrieve the values of the firstName
and itemName
parameters and use them in a landing page.
The rendered HTML contains the content of the specified query parameters.