ExamGecko
Question list
Search
Search

Question 53 - Certified B2B Commerce Developer discussion

Report
Export

What are three ways to test the value of Page Label on any Salesforce B2B Commerce Community Page? (3 answers)

A.
Access the source HTML for the page viathe browser developer tools.
Answers
A.
Access the source HTML for the page viathe browser developer tools.
B.
Execute CCRZ.pagevars.pageLabels['PAGE_LABEL_NAME') in the JavaScript console.
Answers
B.
Execute CCRZ.pagevars.pageLabels['PAGE_LABEL_NAME') in the JavaScript console.
C.
Execute CCRZ.processPageLabelMap('PAGE_LABEL_NAME') in the JavaScript console.
Answers
C.
Execute CCRZ.processPageLabelMap('PAGE_LABEL_NAME') in the JavaScript console.
D.
Enable the 'display page label names' in cc admin.
Answers
D.
Enable the 'display page label names' in cc admin.
E.
Execute (('PAGE_LABEL_NAME')) in the JavaScript console
Answers
E.
Execute (('PAGE_LABEL_NAME')) in the JavaScript console
Suggested answer: B, C, D

Explanation:

Three ways to test the value of Page Label on any Salesforce B2B Commerce Community Page are:

Execute CCRZ.pagevars.pageLabels['PAGE_LABEL_NAME'] in the JavaScript console. This will return the value of the page label with the given name from the pagevars object, which contains all the page labels that are used on the page.

Execute CCRZ.processPageLabelMap('PAGE_LABEL_NAME') in the JavaScript console. This will return the value of the page label with the given name from the pageLabelMap object, which contains all the page labels that are defined in CCAdmin.

Enable the 'display page label names' in cc admin. This will display the name of each page label next to its value on the storefront pages, which can help identify and verify the page labels. Salesforce

Reference:B2B Commerce and D2C Commerce Developer Guide,Page Labels

asked 23/09/2024
DIPESH JAISWAL
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first