email and US phone validation via BO new user rule
-
- Posts: 370
- Joined: Sat Apr 28, 2018 3:33 am
- Location: India
- Contact:
email and US phone validation via BO new user rule
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.
-
- Posts: 370
- Joined: Sat Apr 28, 2018 3:33 am
- Location: India
- Contact:
Re: email and US phone validation via BO new user rule
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.
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.
Re: email and US phone validation via BO new user rule
Try searching for regex in the tips section .
Henrik (V8 Developer Ed. - Windows)
-
- Posts: 370
- Joined: Sat Apr 28, 2018 3:33 am
- Location: India
- Contact:
Re: email and US phone validation via BO new user rule
This worked! thank you.
-
- Posts: 1463
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: email and US phone validation via BO new user rule
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
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
-
- Posts: 370
- Joined: Sat Apr 28, 2018 3:33 am
- Location: India
- Contact:
Re: email and US phone validation via BO new user rule
Thank you for deep down under formatting help.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