# Mask Sensitive Form Values

> 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/mask-sensitive-form-values  
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 “Mask Sensitive Form Values”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-28-19-10-47.png)

Here’s a solution for setting up text fields to behave as masked passwords on the front end.

**Step 1**

**Find the component ID. You can find this information in the page builder by hovering over the info icon. Be sure to have the preview builder view active.**

![Screenshot for “Mask Sensitive Form Values”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/image-1664406038843.png)

**Step 2**

**Edit the field you’d like to mask from the page builder. While editing your field, you will find the option to add a CSS class selector under the design tab.**

![Screenshot for “Mask Sensitive Form Values”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/image-1664406361213.png)

**Step 3**

**Add the following code to the JavaScript ta of your page.**

```
TB.render('component_X', function(data){
    data.ele.find('.password input').attr('type','password');
});
```

> **Note:** Remember to replace **component_X** with your form’s component ID found in step 1 and **.password** with your field’s defined CSS class.

![Screenshot for “Mask Sensitive Form Values”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/image-1664406501789.png)

**Original Community Post:**

[Mask sensitive form values - Community Discussions / How Do I - Tadabase Community](https://community.tadabase.io/t/mask-sensitive-form-values/874)
