QuestionQ51

Marketing Cloud Channels

A developer is building a CloudPage that accepts secure parameters through an email link and submits those parameters to another CloudPage for a data upsert. The page currently captures an Appointment ID parameter passed to it and assigns the value to the variable @apptId. The developer does NOT want the Appointment ID to be visible to anyone using the form.

What is the best method to make sure the parameters are passed successfully to the data upsert page?

  • A <form action="%%=CloudPagesURL(123,'apptId',@apptId)=%%" method="post">
  • B <input id="apptId" type="textarea" value="%%=v(@apptId)=%%" readonly>
  • C <input id="apptId" type="textarea" value="%%=v(@apptId)=%%" hidden>
Explanation

CloudPagesURL() creates a destination CloudPage URL whose query string includes the supplied apptId as encrypted text. Using that generated URL as the form action preserves the Appointment ID for the data-upsert CloudPage without rendering the value in the form. The destination page can retrieve the encrypted URL parameter with RequestParameter() or QueryParameter().

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!