Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Do not allow empty values in custom registration form View modes: 
User avatar
Guest
Gabriëlle - 2/14/2009 9:35:42 AM
   
Do not allow empty values in custom registration form
Hi there,

I've added the custom registration webpart to my page and I made an alternative form in the systemtable 'user'. What I would like is the following:

- In the alternative form, I can't make some fields required because this is default unchecked for the systemtable (for example e-mailaddress). When a new user registers, I want some fields required, otherwise the new user can't register, but the checkbox 'Allow empty values' is disabled. I've read in the documentation that it is recommended always to allow empty fields for system tables, but what about alternative forms?

- Another feature would be very great. In my site, I would like to have a registrationform for a specific part of the site and these users must be invited by e-mail by the website editor with a unique code. They have to enter this code in a field within the form that can be used only once. When the code is allready used or not filled in, the user can't register.

Are these things already possible, is there a workaround or are you planning to implement this in a next version?

Thanks in advance,

Gabriëlle

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/26/2009 6:10:25 AM
   
RE:Do not allow empty values in custom registration form
Hi,

Some of the fields in alternative forms are inherited from the system tables and therefore it is not possible to change their definition. Also, the null values are recommended to avoid several issues with "null" values. Anyway, in the field definition you can use the Validation and enter e.g. some regular expression to check the e-mail address or minimal length, etc.

Thank you for your suggestion, we will consider it for some of the next versions.

Best Regards,
Juraj Ondrus