# Perspective Text Field: prevent virtual keyboard popup on focus (mobile apps)

**URL:** <https://forum.inductiveautomation.com/t/perspective-text-field-prevent-virtual-keyboard-popup-on-focus-mobile-apps/66085>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [November 3, 2022, 5:51pm UTC](https://forum.inductiveautomation.com/t/perspective-text-field-prevent-virtual-keyboard-popup-on-focus-mobile-apps/66085 "2022-11-03T17:51:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [November 3, 2022, 5:51pm UTC](https://forum.inductiveautomation.com/t/perspective-text-field-prevent-virtual-keyboard-popup-on-focus-mobile-apps/66085/1 "2022-11-03T17:51:28Z")

</div>

In a Perspective View I'm using a Text Input Field just to receive the data from a barcode scanner which emulates a keyboard. Is there a way to set the text field, so that when it gets focused the mobile device keyboard does not poup?

Thanks, regards

---

<div class="post-metadata">

**Author:** ![craigb](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@craigb](https://forum.inductiveautomation.com/u/craigb)\
**Post date:** [November 3, 2022, 6:41pm UTC](https://forum.inductiveautomation.com/t/perspective-text-field-prevent-virtual-keyboard-popup-on-focus-mobile-apps/66085/2 "2022-11-03T18:41:05Z")

</div>

Can you switch to using the barcode scanner input, rather than a text input box ?

[https://docs.inductiveautomation.com/display/DOC81/Perspective+-+Barcode+Scanner+Input](https://docs.inductiveautomation.com/display/DOC81/Perspective+-+Barcode+Scanner+Input)

---

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [November 3, 2022, 8:42pm UTC](https://forum.inductiveautomation.com/t/perspective-text-field-prevent-virtual-keyboard-popup-on-focus-mobile-apps/66085/3 "2022-11-03T20:42:10Z")

</div>

Thanks for your suggestion, you are right. The only problem is the customer, who likes better a text field just in case the barcode reader doesn't work.

---

<div class="post-metadata">

**Author:** ![swolnisty](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@swolnisty](https://forum.inductiveautomation.com/u/swolnisty)\
**Post date:** [November 4, 2022, 9:04pm UTC](https://forum.inductiveautomation.com/t/perspective-text-field-prevent-virtual-keyboard-popup-on-focus-mobile-apps/66085/4 "2022-11-04T21:04:01Z")

</div>

You could configure an event handler to set the focus on the text field:

> [@How to set focus in perspective](https://forum.inductiveautomation.com/t/how-to-set-focus-in-perspective/46006):
>
> I have a pop-up view in perspective that contains some labels, buttons and a textfield. I’d like to set the focus to the textfield when the pop-up opens, how can I do this?

EDIT: I just noticed that you specifically mention that you do not want the mobile keyboard to popup. I am not sure that Perspective has any features that would allow mobile keyboard suppression at this time. Mobile keyboard handling in Perspective seems to be slightly lacking when compared with most web dev type software at the moment.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 4, 2022, 9:14pm UTC](https://forum.inductiveautomation.com/t/perspective-text-field-prevent-virtual-keyboard-popup-on-focus-mobile-apps/66085/5 "2022-11-04T21:14:14Z")

</div>

This isn't currently possible with the text field component. In an upcoming version, when the Form component arrives, it should be possible to set `inputmode='none'`.

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [November 5, 2022, 9:41pm UTC](https://forum.inductiveautomation.com/t/perspective-text-field-prevent-virtual-keyboard-popup-on-focus-mobile-apps/66085/6 "2022-11-05T21:41:27Z")

</div>

> [@paul-griffith](#):
>
> when the Form component arrives,

Any guesstimate timeline on the form component? That way I can stop building form generators from scratch 🙂

---

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [December 19, 2023, 8:54pm UTC](https://forum.inductiveautomation.com/t/perspective-text-field-prevent-virtual-keyboard-popup-on-focus-mobile-apps/66085/7 "2023-12-19T20:54:44Z")

</div>

> [@kgamble](#):
>
> building form generators from scratch

Hi @kgamble, what do you mean? Are you playing with Ignition SDK or is it anything simple I can get to via python scripting?

Thanks, regards
