ExamGecko
Question list
Search
Search

List of questions

Search

Question 225 - Certified B2B Commerce Administrator discussion

Report
Export

A developer is creating a component to implement a custom Terms and Conditions checkbox at checkout in the Aura Commerce template.

Which method should the developer implement on the Lightning web component to ensure the user accepts the terms and conditions?

A.
ComponentValidity
Answers
A.
ComponentValidity
B.
Validate
Answers
B.
Validate
C.
SaveCheckout
Answers
C.
SaveCheckout
D.
CheckValidity
Answers
D.
CheckValidity
Suggested answer: D

Explanation:

The CheckValidity method is a standard method that Lightning web components can implement to validate user input. It returns true if the input is valid, and false otherwise. The developer can use this method to check if the user has checked the Terms and Conditions checkbox, and prevent them from proceeding to checkout if they have not.The other methods are not standard methods for Lightning web components, and would have to be custom defined by the developer3.Reference:3: Validate User Input - Trailhead4

asked 23/09/2024
Eric Persson
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first