19
Views
2
Comments
Solved
[Input Masks Library] Autofocus and Select on Masked Input
input-masks-mobile
Reactive icon
Forge asset by Labs
Application Type
Reactive

Hello,

How do I set Autofocus and Select for Masked Input? Usual properties can only be set for hidden input in the placeholder. Or how do I target the masked input in JS as we don't have a widget id for it? 


Many thanks,

Alexandra Bayles

2023-12-16 19-57-03
Sanjay Kushwah
Solution

Hi @Alexandra Bayles,

It was difficult to find right ID of input so i have added data-id attribute.

and inside the JS i have targeted the input using that data-id attribute and focused on it.

 

I have also attached the OML file.

Hope this will help you.

Kind regards,

Sanjay kushwah

Inputmask_focus.oml
UserImage.jpg
Alexandra Bayles

Thank you, Sanjay, it worked!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.