JotForm User Guide / Advanced Features /

How to Mask Input Text in Textbox Field

How to Mask Input Text in Textbox Field

Having your form input text obfuscated in some way is sometimes needed to keep your user's form confidential data hidden from bypasser's prying eyes. 

Isn't it better if your form users were less worried and were not glancing around every time  checking if someone is looking over their shoulder spying on what they are typing?

This easy to apply trick can do the job as well. Provided you do not take it more than for what it was supposed to be.


Things to consider when using this solution:

* This is not a security solution. Far from it, as there was no data security being considered on this nifty trick.

** Security measures are already built-in on all JotForm forms. A higher grade of form security that can be used on the form is the Form Encryption instead.

*** It is proven to work on Chrome browser and mobile browser as well. But it is 50/50 on the chance it will not work on IE browser and Firefox browser. Browsers are simply each on their own so not all solutions will have similar success behavior on them.


Steps on how to apply this trick on a form that uses Textbox field.

1. Get the field ID# of the field the input obfuscation will be applied to. Use the field Properties to get the ID#. (in the demo form, the field ID# is #input_1)

- Scroll down and click Field details:

-There you will be able to get the field ID:

2. Load the Form Designer and open the CSS Editor.

3. In the CSS editor add the CSS code like this. Just replace the field ID# with the one from your form (i.e. replace #input_1 with your own)

#input_1 {
    -webkit-text-security : disc;

css editor

4. Save the form.

Better test it before deploying. 

For further assistance needed, contact us in our Support Forum

Send Comment