Validate if a field has the exact value

More
6 years 2 months ago #122498 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

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

More
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

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