Any cluster of answers on a summary page can have an associated Edit link which appears to the right-hand side of the cluster title. This link is created by adding an edit-link element to the cluster as in the example below:
<cluster> <title id="DetailsCluster.Title"> <![CDATA[Person Details]]> </title> <edit-link start-page="AboutYouPage"/> <layout> <num-cols>2</num-cols> </layout> <question id="firstName"> <label id="FirstName.Label"> <![CDATA[First Name:]]> </label> </question>
The start-page attribute can be used to specify which page to link to (typically the same page on which they entered the information in the first place), using the id of the appropriate question-page element. This page should be in the same section as the summary page, otherwise a validation error will be thrown.
Once the user clicks on the Edit link from a summary page, the user is taken to the specified start page so that he or she can edit the data on it. Where the user goes from there depends on whether the user actually does anything on the page (i.e., change any answers) and what the implications of these changes might be. The options for what happens when a user clicks the next button are as follows:
The optional show-page-elements attribute can be used to specify a list of clusters that should be displayed on the specified start page. If the attribute is not specified, the clusters on the page are rendered normally. Conditional clusters which are listed in the show-page-elements attribute behave as follows.