Created
May 19, 2022 14:24
-
-
Save SilentKernel/135f57579365314a94d09e423fce37c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Form; | |
class MyGreatForm extends AbstractType | |
{ | |
public function buildForm(FormBuilderInterface $builder, array $options): void | |
{ | |
$builder | |
->add('tmpPhone', TextType::class, [ | |
'required' => true, | |
'attr' => [ | |
'data-intl-tel-input-target' => 'input', | |
'autocomplete' => 'tel' | |
] | |
]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment