ExamGecko
Question list
Search
Search

Question 75 - Certified B2B Commerce Developer discussion

Report
Export

Which handlebars helper expression is used in Salesforce B2B Commerce pages and components to toggle the display of a block of markup?

A.
{{#ifStoreSetting 'Field__c'}} ... {{/ifStoreSetting}}
Answers
A.
{{#ifStoreSetting 'Field__c'}} ... {{/ifStoreSetting}}
B.
{{#ifSetting 'Page.cfg}} ... {{/ifSetting}}
Answers
B.
{{#ifSetting 'Page.cfg}} ... {{/ifSetting}}
C.
{{#ifConfig 'Field__c'}} ... {{/ifConfig}}
Answers
C.
{{#ifConfig 'Field__c'}} ... {{/ifConfig}}
D.
{{#ifDisplay 'Page.cfg'}} ... {{/ifDisplay}}
Answers
D.
{{#ifDisplay 'Page.cfg'}} ... {{/ifDisplay}}
Suggested answer: C

Explanation:

The handlebars helper expression that is used in Salesforce B2B Commerce pages and components to toggle the display of a block of markup is {{#ifConfig 'Field__c'}} ... {{/ifConfig}}. This expression will evaluate the value of the configuration setting with the API name Field__c and render the block of markup if the value is true, or skip it if the value is false. For example,{{#ifConfig 'CO.showMiniCart'}} ... {{/ifConfig}}will render the mini-cart div only if the configuration setting CO.showMiniCart is true. Salesforce

Reference:B2B Commerce and D2C Commerce Developer Guide,Handlebars Helpers

asked 23/09/2024
Kishi Peart
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first