| Exam Name: | Salesforce Certified B2C Commerce Developer | ||
| Exam Code: | Comm-Dev-101 Dumps | ||
| Vendor: | Salesforce | Certification: | Developers |
| Questions: | 154 Q&A's | Shared By: | noelle |
Reference the following code snippets that allow a form to function correctly.
Form definition (newsletter.xml):
< ?xmlversion= " 1.0 " ? >
< formxmlns= " http://www.demandware.com/xml/form/2008-04-19 " >
< fieldformid= " email " label= " Email: " type= " string "
mandatory= " true " max-length= " 50 " / >
< /form >
Controller snippet:
varnewsletterForm=server.forms.getForm( ' newsletter ' );
res.render( ' NewsletterTemplate ' ,{newsletterForm:newsletterForm});
Template snippet:
< form action= " ${URLUtils.url( ' Newsletter-Submit ' )} " method= " POST "
< isprint value= " ${EXPRESSION.attributes} " encoding= " off " / > >
< input type= " input " id= " email "
< isprint value= " ${EXPRESSION.email.attributes} " encoding= " off " / > >
< button type= " submit " > Submit < /button >
< /form >
Which code should a developer insert at the EXPRESSION placeholder in the ISML template snippet above to have the form work as expected?
A developer is working on a new site for the U.S. based on an existing Canadian site. One of the requirements is a change to the address form. The current Canadian form has an < options > list with the correct two-letter abbreviation for the provinces.
The U.S. requirements are to:
Have an < options > list with the correct two-letter abbreviation for the states in place of the province field.
Set the U.S. site locale.
Add the options list field definition to the XML file.
How should the developer set up the files before making the required edits?
Given a B2C Commerce client with these specifics:
Sells in two different countries: US and IN
Uses only the English language
A developer has a requirement to add a new field to the IN registration form that must not appear in the US one.
Which path should be created to accomplish this requirement?
Which snippet works correctly when updating the package.json file to point to the hook file for a cartridge?