LinkedIn
Copied!

Table of Contents

Configuring a microsite to display and save custom site data

Version:

Only available versions of this content are shown in the dropdown

The following Microsite serves as a basic example of displaying and saving custom site data. This Microsite is not action- or customer-context aware.

This Microsite shows a simple page with the discounted value for the product and provides an input field for customers to sign up.

The Page1 Section rule uses two custom site fields (via the .CustomSiteData page property). A snippet of this section is shown below:

The confirmation section simply displays the previously entered (and then saved) email.

Since this Microsite does not have an action context, the NewValue custom data property is initialized via the pyDefault Data Transform rule in the class of this Microsite.

It is critical that this Data Transform must be in the Microsite -specific class and must have the Call superclass data transform? checkbox enabled.

Upon launching the Microsite launch URL with Site=SampleMicrosite, the following is displayed:

After entering an email and clicking Next, the confirmation page is displayed:

Did you find this content helpful?

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.