The id
attribute specifies a unique id for an HTML element which can point to a style in a stylesheet, be targeted by JavaScript, and/or referenced in your QA workflows. In this article, we will cover how to add the id
attribute to inline text links within an existing first layer message to allow automated QA testing of that link being selected.
Click Messages on the left-hand panel and select a regulatory regime (GDPR Messages, U.S. Privacy Messages (Legacy), or U.S. Multi-State Privacy Messages).
Click Web/Webview from either subsequent menu.
Note: When building a message for the GDPR regulatory regime, you will have the option to select either a Web/Webview message for either TCF or Standard.
Use the property field in the upper right-hand corner to select a property for which you will edit a first layer message.
Ensure the First Layer tab is selected and click the Edit icon inline with a first layer message on the subsequent list.
From the first layer message builder, select a text component from the preview pane for which you wish to add an id
attribute to an inline link.
Navigate to the Settings pane and expand the Content accordion.
In the provided text space, highlight the inline text link and click the # icon in the toolbar.
Add the value for the id
attribute in the provided space and click Add ID.
Click Save Message when finished.
The id
attribute will be assigned to the inline text link. Confirm the id
attribute by surfacing your first layer message on your property and use the browser console to inspect the inline text link.
Comments
0 comments