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

Which handlebars helper expression is used in Salesforce B2B Commerce pages andcomponents to toggle the display of a block of markup?
C) {{#ifConfig 'Field__c'}} ... {{/ifConfig}}
A) {{#ifStoreSetting 'Field__c'}} ... {{/ifStoreSetting}}
B) {{#ifSetting 'Page.cfg}} ... {{/ifSetting}}
D) {{#ifDisplay 'Page.cfg'}} ... {{/ifDisplay}}

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
Lauran
1 month ago
I keep mixing up the helpers, but I think C) {{#ifConfig 'Field__c'}} is related to configuration settings, right?
upvoted 0 times
...
Marya
1 month ago
I'm not entirely sure, but I feel like B) {{#ifSetting 'Page.cfg'}} could be the right one. It sounds familiar from a practice question we did.
upvoted 0 times
...
Rima
2 months ago
I think the answer might be A) {{#ifStoreSetting 'Field__c'}}. I remember practicing with store settings in our last session.
upvoted 0 times
...

Save Cancel