Sunday 22 May 2005 12:41:44 am
Hi, my users have the possibility to register as user in different roles: normal user, affiliate, company. I added a multi select attribute to my user class where users can choose for which role they want to register. Also I added all possible attributes needed for the different roles, like company name (affiliates and companies), newslettermode (normal users), ... Now I want to ensure - for example - that a user, who wants to register as company or affiliate, fills in the company name. I had some different ideas: - set the needed attributes to "required" on the fly (not in the database) - add an workflow after validating / before saving the new user object - a new datatype "requireOnTheFly" which is somehow depending on one source attribute (e.g. checkbox set) and then checks if some target attributes are not empty What do you think? Any other idea? Thanks Thomas
|