- Posts: 1
- Thank you received: 0
Validate if a field has the exact value
- Uwe
- Topic Author
- Offline
- New Member
-
Less
More
6 years 2 months ago #122498
by Uwe
Validate if a field has the exact value was created by Uwe
Hi,
I need a custom field on the registration form which needs to be validated when the form is sent. The information which is entered into this field must have an exact value (eg. "test123"). If a user enters a different or incomplete value he gets the error message "wrong input".
I think this can be done with the validation rules - but I don't know how. Could you please help me with this question?
Thanks,
Uwe
I need a custom field on the registration form which needs to be validated when the form is sent. The information which is entered into this field must have an exact value (eg. "test123"). If a user enters a different or incomplete value he gets the error message "wrong input".
I think this can be done with the validation rules - but I don't know how. Could you please help me with this question?
Thanks,
Uwe
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 2 months ago #122500
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Validate if a field has the exact value
Could you try to edit the field, set Server Validation Rule to in:test123, then check to see whether it works (it will validate data using PHP)
If it does not work, I am afraid of you might have to write a custom validation rule and use it membershipprodoc.joomservices.com/basic-...ld-custom-validators
Tuan
If it does not work, I am afraid of you might have to write a custom validation rule and use it membershipprodoc.joomservices.com/basic-...ld-custom-validators
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.