ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 24 - AD0-E716 discussion

Report
Export

An Adobe Commerce developer has added a new configuration field to the admin are

A.
The path for this option is general/store_information/out_of_hours_phone.Keeping simplicity in mind, how would the developer ensure this option contains a valid US telephone number?
Answers
A.
The path for this option is general/store_information/out_of_hours_phone.Keeping simplicity in mind, how would the developer ensure this option contains a valid US telephone number?
B.
Add <validate>phoneUS</validate> to the field in system.xml.
Answers
B.
Add <validate>phoneUS</validate> to the field in system.xml.
C.
Create a backend model to check the validity of the phone number entered.
Answers
C.
Create a backend model to check the validity of the phone number entered.
D.
Add <validate type='phoneUS'/> to the field in system.xml.
Answers
D.
Add <validate type='phoneUS'/> to the field in system.xml.
Suggested answer: A

Explanation:

According to the Magento Stack Exchange answer, system.xml is a file that defines the configuration fields for the admin area. Each field can have a validate attribute that specifies a validation rule for the field value. Magento provides some built-in validation rules, such as phoneUS, which validates a US telephone number. Therefore, to ensure that the option contains a valid US telephone number, the developer needs to add <validate>phoneUS</validate> to the field in system.xml. Verified

Reference: https://magento.stackexchange.com/questions/104570/magento-2-system-xml-validation-rules

asked 02/10/2024
Ariel Acosta
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first