# \[FEATURE\] Perspective - Input - inputmode attribute

**URL:** <https://forum.inductiveautomation.com/t/feature-perspective-input-inputmode-attribute/52282>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [October 25, 2021, 6:10am UTC](https://forum.inductiveautomation.com/t/feature-perspective-input-inputmode-attribute/52282 "2021-10-25T06:10:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![michal.koblasa](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@michal.koblasa](https://forum.inductiveautomation.com/u/michal.koblasa)\
**Post date:** [October 25, 2021, 6:10am UTC](https://forum.inductiveautomation.com/t/feature-perspective-input-inputmode-attribute/52282/1 "2021-10-25T06:10:08Z")

</div>

Dear Ignitioners,  
I need to set inputmode attribute for tag Input (Text field or Numeric input field).  
It is very needed to control, which mobile keyboard is shown for each input in the perspective module (numeric or text).  
For this purpose there is HTML attribute inputmode:

> **[Finger-friendly numerical inputs with \`inputmode\`](https://css-tricks.com/finger-friendly-numerical-inputs-with-inputmode/)**
>
> Forms are often a nightmare on mobile. We can make the process as pain-free as possible by reacting to context. Input fields that expect numerical values

It is possible to set this parameter to Perspective component Text field or Numeric input field?

Current solution type=“text” for Text field and type=“number” for Numeric input field is not meet my requirements.

 ![Snímek obrazovky 2021-10-25 074908.PNG](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/3/034e4589ee49d47892b56cebbe4872d9d556d9f3.jpeg)

Is there some general possibility to set custom HTML attribute to DOM element?

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 25, 2021, 6:43am UTC](https://forum.inductiveautomation.com/t/feature-perspective-input-inputmode-attribute/52282/2 "2021-10-25T06:43:51Z")

</div>

no you can not change the html unless you create your own module.  
Im not sure why the numeric entry field component isnt set to type number xd

---

<div class="post-metadata">

**Author:** ![michal.koblasa](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@michal.koblasa](https://forum.inductiveautomation.com/u/michal.koblasa)\
**Post date:** [October 25, 2021, 7:03am UTC](https://forum.inductiveautomation.com/t/feature-perspective-input-inputmode-attribute/52282/3 "2021-10-25T07:03:21Z")

</div>

Thank you, Numeric text field is set to _type=number_ (this type is too strict and does not allow me control over the keyboard shown as I need. this is a kind of “old-school attribute”.  
But I need to control the keyboard through the _inputmode_ attribute.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 25, 2021, 7:26am UTC](https://forum.inductiveautomation.com/t/feature-perspective-input-inputmode-attribute/52282/4 "2021-10-25T07:26:18Z")

</div>

its a nice feature request, it should be quite easy for them to add this into the component.

add it in here and put the link to your request in this topic^^

> **[Ignition Features and Ideas | Inductive Automation](https://ideas.inductiveautomation.com/ignition-features-and-ideas)**

---

<div class="post-metadata">

**Author:** ![michal.koblasa](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@michal.koblasa](https://forum.inductiveautomation.com/u/michal.koblasa)\
**Post date:** [October 25, 2021, 7:44am UTC](https://forum.inductiveautomation.com/t/feature-perspective-input-inputmode-attribute/52282/5 "2021-10-25T07:44:07Z")

</div>

Ok, there it is:

> **[Perspective - Inputs - inputmode attribute for Numeric and patter control |...](https://inductiveautomation.canny.io/ignition-features-and-ideas/p/perspective-inputs-inputmode-attribute-for-numeric-and-patter-control)**
