You are viewing limited content. For full access, please sign in.

Question

Question

Set single line field to type="password"

asked on July 22 Show version history

Hi, 

I am on Laserfiche Cloud using the Modern Forms Designer.

I have a field that will hold a password and I want the password to act like a password field by displaying circles or asterisks to conceal the text as it is typed.  In the screenshot I edited the DOM directly in the Inspect pane to demonstrate what I want it to look like:



Is there a built in way to do this?  If not, can I set the field type to .type="password" via JS or do something in CSS to get the same effect?

Any help appreciated.  Thanks.

0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on July 22

This worked for me.  I just added this class to the global CSS and then added "password" to the single line field CSS Classes...

 

.password input {
    -webkit-text-security: disc;
    text-security: disc;
}

 

2 0
replied on July 23

Thank you, yes this worked for me.  

0 0

Replies

replied on July 22

Unfortunately, the Modern Designer doesn't have that level of control over the fields on forms.  I do not believe this is currently possible in the Modern Designer.

It may be possible in the Classic Designer.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.