email and US phone validation via BO new user rule

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
swiftinitpvtltd
Posts: 370
Joined: Sat Apr 28, 2018 3:33 am
Location: India
Contact:

email and US phone validation via BO new user rule

Post by swiftinitpvtltd »

How to do email and US phone validation via BO new user rule.I have html guest registration and somehow even the type is email in BO column property it lets any value gets saved when html(imported form) form is filled by guest user.
swiftinitpvtltd
Posts: 370
Joined: Sat Apr 28, 2018 3:33 am
Location: India
Contact:

Re: email and US phone validation via BO new user rule

Post by swiftinitpvtltd »

For now I used crude dynamic rule in BO rules
If NOT(ThisUser.EmailAddress CONTAINS('@')) then
REPORT ERROR 'Please enter valid email'

but I need it with email regex and us phone validation as well.
hpl123
Posts: 2579
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: email and US phone validation via BO new user rule

Post by hpl123 »

Try searching for regex in the tips section ;).
Henrik (V8 Developer Ed. - Windows)
swiftinitpvtltd
Posts: 370
Joined: Sat Apr 28, 2018 3:33 am
Location: India
Contact:

Re: email and US phone validation via BO new user rule

Post by swiftinitpvtltd »

This worked! thank you.
PointsWell
Posts: 1457
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: email and US phone validation via BO new user rule

Post by PointsWell »

There is also a class in the Apache Validations jar that validates email formats, checking for valid TLD that can be used to create a plug in.

Cannot attest to the currency of the TLD data, it seems to be hard coded within the class.

https://awareim.com/forum/viewtopic.php?f=4&t=11751 I found it while doing this
swiftinitpvtltd
Posts: 370
Joined: Sat Apr 28, 2018 3:33 am
Location: India
Contact:

Re: email and US phone validation via BO new user rule

Post by swiftinitpvtltd »

PointsWell wrote: Wed Sep 30, 2020 11:44 am There is also a class in the Apache Validations jar that validates email formats, checking for valid TLD that can be used to create a plug in.

Cannot attest to the currency of the TLD data, it seems to be hard coded within the class.

https://awareim.com/forum/viewtopic.php?f=4&t=11751 I found it while doing this
Thank you for deep down under formatting help.
Post Reply