ab4net
Posts: 6
|
Posted: 11/11/2013, 12:10 PM |
|
Hi ...
am creating a registration form:
how i can check if the username he entered is available or taken .. ?!
please advice
|
|
|
eratech
Posts: 513
|
Posted: 11/11/2013, 3:23 PM |
|
Quick and simple - On the Properties for the username, set the 'Unique' property to 'Yes' - the error message may not be user friendly, but it's quick. Look at the en.txt file and translations for ways to change the message.
Alternatively, if you want to do something trickier, you could put a DLookup action into the Before Insert event of the Record to look up the username then set some other Error (check Help for AddError to add your own errors to the form)
But please do try the Tutorials in the Help file. It is useful, and there are Examples projects in CCS what will demonstrate most of the common things.
Cheers
Eric
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia |
|
|
ab4net
Posts: 6
|
Posted: 11/11/2013, 11:13 PM |
|
THank you very much ...
i will try the INSERT thing ...
|
|
|
|