# Set "Inputmode" on a Currency Field to a Decimal

> Please note that this is now available as a plugin for easier installation. While you can use this document as a reference, the recommended method to add…

Source: https://tadabase.com/docs/snippets/set-inputmode-on-a-currency-field-to-a-decimal  
Status: Not yet re-checked. Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

> **Warning:** Please note that this is now available as a plugin for easier installation. While you can use this document as a reference, the recommended method to add this functionality is through the plugin installation wizard. Learn more about plugins [here](https://tadabase.com/docs).

![Screenshot for “Set "Inputmode" on a Currency Field to a Decimal”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/d9b74bffec58b9f93557c032a6de288b609aa612.gif)

**This customization can be beneficial for many reasons. For example, it can be helpful on an app targeted purely at mobile users.**

**Step 1**

**Copy & paste this code into the footer of the site:**

```
<script src="https://cdnjs.cloudflare.com/ajax/libs/inputmask/4.0.9/jquery.inputmask.bundle.min.js"></script>
```

![Screenshot for “Set "Inputmode" on a Currency Field to a Decimal”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-03_17-45-15.png)

**Step 2**

**Find the ID of the field you wish to use:**

![Screenshot for “Set "Inputmode" on a Currency Field to a Decimal”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-03_17-51-27.png)

**Step 3**

**Add the following code to the JavaScript of the page, be sure to change the field ID to the ID from step 2.**

```
var flag = false;

function checkFlag() {
    if (flag === false) {
        if ($(’#field0DzjGaNYp1’).html() !== undefined) {
            flag = true;
        }
        window.setTimeout(checkFlag, 100);
    } else {
        var im = new Inputmask(‘99.99’);
        im.mask($(’#field0DzjGaNYp1’));

    }
}
checkFlag();
```

![Screenshot for “Set "Inputmode" on a Currency Field to a Decimal”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-03_18-02-24.png)

Original Community Post:

[Set "inputmode" on a currency field to "decimal"? - Community Discussions / How Do I - Tadabase Community](https://community.tadabase.io/t/set-inputmode-on-a-currency-field-to-decimal/208/2)
