Already exist
Already exist
michelek
Posts: 24Questions: 5Answers: 0
I'm working on my project http://accoglienza.eservers.it/join.html
When I am creating a new entry I have to check if name and surname already exist, how I can do it?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi,
With a single field you would be able to use the
unique
validator that is built into Editor. However, with it being the combination of two fields, you would need to write a custom validation method.Allan
I don't know how to validate both columns with an AND operator
example: if persone.nome AND persone.cognome is unique
You need to write a custom validator, detailed which you can find at the link I gave above. As I say, there isn't a built in validator that will check the uniqueness of two values combined.
Allan
I really don't know how to do it, I need an example to understand.
Can you do it for me, I can pay your service.
If I can deal directly with you write me an email to info@eservers.it
Certainly - I'd be happy to write an example of this under the DataTables support options. The Quick Support 60 option would cover it.
Regards,
Allan
Thanks Allan, I will get it tomorrow!