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