I am trying to override checkout_index_index.xml
using below code for minimum digits :
<item name="telephone" xsi:type="array">
<item name="validation" xsi:type="array">
<item name="min-digits" xsi:type="number">8</item>
</item>
<item name="config" xsi:type="array">
<item name="tooltip" xsi:type="array">
<item name="description" xsi:type="string" translate="true">For delivery questions.</item>
</item>
</item>
</item>
But when I run all the Magento command the rule is not goes performed. Even also I developed a plugin for this :
public function afterMerge(\Magento\Checkout\Block\Checkout\AttributeMerger $subject, $result)
{
if (array_key_exists('telephone', $result)) {
$result['telephone']['config']['additionalClasses'] = 'validate-digits';
$result['telephone']['config']['additionalClasses'] = 'min-digits-8';
$result['telephone']['additionalClasses'] = 'validate-digits';
$result['telephone']['additionalClasses'] = 'min-digits-8';
$result['telephone']['validation']['validate-digits'] = true;
$result['telephone']['validation']['min-digits'] = 8;
}
return $result;
}
But from this also minimum digits validation does not perform. can anyone suggest me which thing i am going to miss ?
I also try to just change the Magento default validation in
<item name="company" xsi:type="array">
<item name="validation" xsi:type="array">
<item name="min_text_length" xsi:type="number">5</item>
</item>
</item>
here I just change from 0 to 5 but still that also not working.
Magento version i used is 2.3.0