Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce B2B Commerce for Developers Accredited Professional (AP-202) Exam - Topic 4 Question 92 Discussion

Actual exam question for Salesforce's B2B Commerce for Developers Accredited Professional (AP-202) exam
Question #: 92
Topic #: 4
[All B2B Commerce for Developers Accredited Professional (AP-202) Questions]

Which handlebars helper expression is used in Salesforce B2B Commerce pages and

components to toggle the display of a block of markup?

Show Suggested Answer Hide Answer
Suggested Answer: C

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


Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel