Script to conditionally cancel ongoing request and return custom error in user registration


#1

I need to make a user custom field unique just like the e-mail field is unique. Is there a way to do that?

If it can’t be done…I need to verify if this custom field already exists in the users table and then if it exists I have to return a custom error message and stop the registration.

At least if someone show me how to programatically cancel the request it would be a beggining to me.

Thanks.


#2

Hi, check out this example
http://wiki.dreamfactory.com/DreamFactory/Tutorials/V8_field_validation


#3

I did it following this example. Thanks!