Two validation rules needed please

More
2 months 22 hours ago #173833 by oleg
This message contains secure information

Please Log in or Create an account to join the conversation.

More
2 months 19 hours ago #173836 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Two validation rules needed please
Hi Alex

The two validation rules you asked are already supported

1. For prevent duplicate for a a field, edit that field, set Server Validation Rules to unique . Then check it again, it should work

2. For prevent field with certain words, please edit that field, set Server Validation Rules to notIn:Google,Apple (each word separated by comma). Then try it, it should work

Regards,

Tuan
The following user(s) said Thank You: oleg

Please Log in or Create an account to join the conversation.

More
2 months 18 hours ago - 2 months 18 hours ago #173837 by oleg
Replied by oleg on topic Two validation rules needed please
Thank you very much Tuan,
- is it possible to use both rules at the same time in one field?
Like:
unique,notIn:Google,Apple
It ist should be separated by camma?
Last edit: 2 months 18 hours ago by oleg.

Please Log in or Create an account to join the conversation.

More
2 months 18 hours ago #173838 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Two validation rules needed please
unique|notIn:Google,Apple

The rules are separated by | character

Tuan
The following user(s) said Thank You: oleg

Please Log in or Create an account to join the conversation.

More
2 months 18 hours ago #173839 by oleg
Replied by oleg on topic Two validation rules needed please
There is a problem:
It prevent only single-word Google, but it does not work with other text and numbers added after it:
for example:
Google:12344
- it is passed ok
Is there any solution for it?
Looking forward.
Thank you

Please Log in or Create an account to join the conversation.

More
2 months 18 hours ago #173840 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Two validation rules needed please
Unfortunately, there is no validation rule for that at the moment. I will see if I can support it in the future

Tuan

Please Log in or Create an account to join the conversation.

More
2 months 18 hours ago #173841 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Two validation rules needed please
Or you can try to build custom validation rules yourself, see docs.joomdonation.com/membershippro/basi...ld-custom-validators for instructions

Regards,

Tuan

Please Log in or Create an account to join the conversation.