Marketing consent
<nsx-marketing-consent>
Overview
A legally compliant way to collect marketing consent from the user.
Use this experience pattern in any journey where there is a need to capture and submit customer marketing preferences. Only use it for this purpose – do not use it for viewing or changing existing preferences.
Examples
TODO Standard
The heading and first paragraph may be customised if the default content is not suitable.
TODO Light
Guidance
Standard
It is possible to change the heading and the first paragraph to suit specific context. However, we recommend using the default content as these have been signed off by the legal team.
If there is an official update to the default content, please inform the Nucleus team so that the the component can be updated.
Implementation
Placement
The nsx-marketing-consent
component can only be used as a child of the <ns-form > form>
element.
Specification
Attributes
name
- Property
name
- Type
string
- Default
marketing-consent
value
- Property
value
- Type
string
- Default
labelID
- Property
labelID
- Type
string
- Default
heading
- Property
heading
- Type
string
- Default
type
- Property
type
- Type
string
- Default
standard
Slots
Slot | Permitted tags | Description |
---|---|---|
heading | <h2> <h3> | The alternative heading of the marketing consent. Heading level depends on its place in the semantics of the page. |
paragraph | <p> | The alternative content of the marketing consent. |
Events
Name | Description |
---|---|
change |
Last updated: