Data validations?

  • Martin Beaumont
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 1 week ago - 4 years 1 week ago #146236 by Martin Beaumont
Data validations? was created by Martin Beaumont
Hi there,
I'm having some issues trying to work out (& understand) custom validations for a few fields I have.

I've read the JD documentation on  Validate Field Data plus the  jQuery-Validation-Engine on Github and to be honest I'm none the wiser.

It's three simple validations I'm trying to configure on the registration form

1. Only allow a 10 digit number starting with a “3”?

2. I have two phone number fields that shouldn't be the same.  So I need to validate they are not equal.

3. Date input that if before today, is rejected.

Any ideas how I might construct these?

Much appreciated
Martin
 
Last edit: 4 years 1 week ago by Martin Beaumont. Reason: Spelling

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

More
4 years 1 week ago #146245 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Data validations?
Hi Martin

From your list of items, only the last items is supported using this validation rules github.com/posabsolute/jQuery-Validation...nother-elements-name

For the two other items, it is not supported, so I guess you will have to implement custom validation rules yourself membershipprodoc.joomservices.com/basic-...ld-custom-validators

Regards,

Tuan

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