10 years ago
5
Topic
Hi,

I need to know if its possible (in real time) check an ID on registration form using SEBLOD.

I have a database where are related numbers (IDs) with people who do not or can register on the site. What I want is upon registration, when the user enters an ID that is automatically verified that table if that ID exists or not. If the ID does not exist is not possible to make the registration.


Thanks in advance!
Sofia
Get a VIP membership
4229 Posts
Kadministrator
10 years ago
1
Level 1
Hi,

yes you can, click number 3 on the right side (validation )  and click on Required / Validation column on the field you would like to check, then in Validation section select Ajax->avaialbility and fill in your table and column that contains the value.
10 years ago
0
Level 2
Hi Klas,

Thanks for your reply!
I am using your tip, but this validation has the opposite effect to what I wanted. What I wanted was to allow only those IDs that are in a table, and did not check if there is already an equal.

What I want is:
if(ID field form == ID on table)
   registration success
else
   "your ID does not exist, you can't register"


Thank you!
10 years ago
0
Level 1
Hi again,

I'm searching a while for solutions…but is being complicated.

I need something like this:
1) if the ID is in the separate table is valid, else not.
2) if the ID is already stored in the user table cannot longer be used for registration.


Can you help me please?
10 years ago
0
Level 1
Hi again,

Sorry for the insistence. I just like to know whether there is way to do what I want using the SEBLOD.


Regards
Sofia
4229 Posts
Kadministrator
10 years ago
0
Level 1
Hi,

I haven't tested this plugin myself, but if it works ok you should be able to use it as in regex you can define negative condition http://www.seblod.com/community/forums/fields-plug-ins/ajax-regex-check
Get a Book for SEBLOD