Skip to main content


Configuring a microsite to display and save custom site data

Suggest edit Updated on January 19, 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.

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:

Did you find this content helpful? YesNo

Have a question? Get answers now.

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

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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