Skip to main content

         This documentation site is for previous versions. Visit our new documentation site for current releases.      

Configuring a microsite to display and save custom site data

Updated on August 4, 2022

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

Pega Customer Decision Hub

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.

Note: 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:

  • Previous topic Defining custom fields for microsites
  • Next topic Configuring a microsite to be aware of customer and action context

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us