Welcome Guest, Not a member yet? Register   Sign In
is_unique in Form Validation on UPDATE

I do a similar thing in my app with username/email address checking.

I simply created a custom validation function and model function which checks if it's unique, but has a parameter "exclude_ids", which I use to pass the user's id through to exclude it from the results returned.

I suggest doing the same, as the built-in "is_unique" function won't give you much control/flexibility like this.

Messages In This Thread
RE: is_unique in Form Validation on UPDATE - by JayAdra - 06-06-2016, 04:52 AM

Theme © iAndrew 2016 - Forum software by © MyBB