Closed webmasterMeyers closed 4 years ago
Add "number_placeholder" option for PhoneNumberType::WIDGET_COUNTRY_CHOICE
PhoneNumberType::WIDGET_COUNTRY_CHOICE
Can be used like this
->add('primaryContactPhone', PhoneNumberType::class, [ 'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => $this->countryRepository->getCodes(), 'preferred_country_choices' => [$options['countryCode']], 'number_placeholder' => $this->phoneNumberUtil->getExampleNumber($options['countryCode'])->getNationalNumber(), ])
provides a selected country with an example number.
I have decided to go about this differently, closing this PR.
Add "number_placeholder" option for
PhoneNumberType::WIDGET_COUNTRY_CHOICE
Can be used like this
provides a selected country with an example number.