0
Good night, all right?
I can’t find a way to include a validation mask with Laravel’s Form Collective. Below the code snippet with a field:
{{Form::label('comp_nota','Competência')}}
{{Form::text('comp_nota','',['class'=>'form-control','required','placeholder'=>'Ex: 08/2018'])}}
I need that when entering the competence the field add to / in the middle of the field. ex: 02/2018.
That is, the user only type 022018.
What can I wear?
{{Form::text('comp_nota','',['class'=>'form-control','required','placeholder'=>'Ex: 08/2018', Pattern="[A-Z]{3}[0-9]{4}"])}}
– Jorge Costa