Transactional Page
A transactional page is to be used under specific scenarios. Treasury Board defines this as follows:
Users are engaged in a transactional process where allowing them to navigate away from the current page would interrupt the intended flow and result in errors, loss of data or accidental termination of the session
Basically, you avoid having external links to prevent users from losing data if they was to navigate away.
Implementation
There are a few modifications required in order to make your page truly transactional. All of these changes are mandatory unless stated otherwise.
In the top
section:
- Hide the search bar
defTop.outerHTML = wet.builder.top({ ... "search": false ... });
defTop.outerHTML = wet.builder.top({ ... "siteMenu": false ... });
defTop.outerHTML = wet.builder.top({ ... "breadcrumbs": [{ "title": "Exit secure transaction", "href": "https://www.canada.ca/en/index.html" }] ... });
defTop.outerHTML = wet.builder.top({ ... "showPreContent": false ... });
In the preFooter
section:
- Hide the content inserted into the post content space of your page
defPreFooter.outerHTML = wet.builder.preFooter({ ... "showPostContent": false ... });
defPreFooter.outerHTML = wet.builder.preFooter({ ... "showFeedback": false ... });
defPreFooter.outerHTML = wet.builder.preFooter({ ... "showShare": false ... });
In the footer
section:
Note: To see all the features for the footer, please visit the footer sample page here.
- Hide the content inside the footer
defFooter.outerHTML = wet.builder.footer({ ... "showFooter": false ... });
newWindow
parameter can be set to true if you would like the link to open in a new window.defFooter.outerHTML = wet.builder.footer({ ... "termsLink": { "href": "https://www.canada.ca/en/transparency/terms.html", "newWindow": true } ... });
defFooter.outerHTML = wet.builder.footer({ ... "privacyLink": { "href": "https://www.canada.ca/en/transparency/privacy.html", "newWindow": true } ... });