Password & Regex Rule - Page 1 - Post...

User 2701655 Photo


Registered User
25 posts

Hi there,

Does anyone know how to set a Regular expression rule for a password field ? I've looked over the forum and was surprised that no one came with this yet ;)

Example : Password must be 8 characters long, and should contain 1 uppercase letter, 1 number and exclude special characters....

Maybe it's possible through an HTML element but i don't know how to code it...

Thank you very much for your help
Best,
D

User 187934 Photo


Senior Advisor
20,271 posts
Online Now

Let me look. I was going to post one but it needs a little tweaking.;)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

Try this.
I had it setup originally to require special characters.
Requires 8-16 characters.
At least one uppercase letter.
At least one lowercase letter.
At least one number.
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[^ ]{8,16}$/

I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2701655 Photo


Registered User
25 posts

Thank you Eric,

But my concern is not regarding the RegEx rule itself as there are a lot of resources on the internet, but for including a RegEx rule within a Password field in WFB.

I can create a regular expression with the rule though, but i won't be able to add the "Verify" feature.

Can you please let me know if this is possible ?

Thanks
Best
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

Are you publishing the form to your own server?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2701655 Photo


Registered User
25 posts

Absolutely !! ;)
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

Does this look correct?
It's a regular password field as provided by the form builder.
http://ericrohloff.com/coffeecup/ccforu … alidation/
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2701655 Photo


Registered User
25 posts

Fantastic Eric !!
How did you do this ??? :)
Is it possible to include the password verification field ?
Thanks
Best,
David
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

Yes, It now has the confirmation of the password.;)
http://ericrohloff.com/coffeecup/ccforu … alidation/
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2701655 Photo


Registered User
25 posts

That's just awesome Eric !!
What should i do to include this in my forms ??
Thanks !
David

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.