Developer forum

Forum » CMS - Standard features » User management - auto generated member numbers

User management - auto generated member numbers

Jacob Storgaard Jensen
Reply

Hi guys,

I'm trying to find a way for creating unique member numbers on extranet users created from the frontend.

Any ideas how to do this?


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Jacob

You can add a custom field for the member number and include that in your create user template as hidden. And then set the number using some javascript, i.e. a random one:

http://stackoverflow.com/questions/1527803/generating-random-numbers-in-javascript-in-a-specific-range

Could that work?

BR Nicolai

 
Morten Lund
Reply

 

You must be logged in to post in the forum