Skip to content

Instantly share code, notes, and snippets.

@SilentKernel
Created May 19, 2022 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SilentKernel/135f57579365314a94d09e423fce37c6 to your computer and use it in GitHub Desktop.
Save SilentKernel/135f57579365314a94d09e423fce37c6 to your computer and use it in GitHub Desktop.
<?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