nerdexam
Adobe

AD0-E716 · Question #24

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

The correct answer is A. Add <validate>phoneUS</validate> to the field in system.xml. 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…

Customization

Question

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

Options

  • AAdd <validate>phoneUS</validate> to the field in system.xml.
  • BCreate a backend model to check the validity of the phone number entered.
  • CAdd <validate type="phoneUS"/> to the field in system.xml.

How the community answered

(44 responses)
  • A
    89% (39)
  • B
    5% (2)
  • C
    7% (3)

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 validation-rules

Topics

#system.xml#admin configuration#field validation#UI validation

Community Discussion

No community discussion yet for this question.

Full AD0-E716 Practice