Duplicate Data in Database

thyl123 10 Aug, 2013
Hey,

my Chronoforms is working fine. But i want to have a validation in there.

I have three fields: name, surname and style(01,02,03,04,...)

Now i want to prove first, if the name is already in the database. Is that possible?

I want to prevent the database of duplicate data.
GreyHead 10 Aug, 2013
Hi thyl123,

You can do this with Custom Serverside Validation. Add a query to check if the value exists; if it does then return an error message.

It's also possible to do this with Ajax in the browser but you should still do a final check with the Serverside Validation.

Bob
thyl123 10 Aug, 2013
hey GreyHead,

it is also possible to do this as a custom code (On Submit)?

I think i do not have access to the server.

And how do i code this? I do not have experience in coding, unfortunately.
GreyHead 10 Aug, 2013
Hi thyl123,

The Custom Serverside Validation action is a ChronoForms action. You will probably need some help to set up the code to do the check though; it does require some Joomla! & PHP knowledge.

Bob
GreyHead 10 Aug, 2013
Hi thyl123,

The Custom Serverside Validation action is a ChronoForms action. You will probably need some help to set up the code to do the check though; it does require some Joomla! & PHP knowledge.

Bob
This topic is locked and no more replies can be posted.