Can't add "Gender" into "Registration Page"

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/17/2008 10:43:29 AM
Gravatar
Total Posts 18

Can't add "Gender" into "Registration Page"

I'm not sure if this is a bug or is by design, but I can't add the "Gender" field onto the "Registration Page" (~/Secure/Register.aspx).  Setting the "requiredForRegisration" attribute to "true" for the "Gender" field does not seem to do anything.  Other fields (e.g. Web Site URL) worked though.

1/17/2008 10:48:19 AM
Gravatar
Total Posts 18439

Re: Can't add "Gender" into "Registration Page"

Hi,

Testing locally it does add the Gender dropdown to the register page for me. However if you want the user to be forced to choose then you would need to remove the empty option.

Hope it helps,

Joe

1/17/2008 8:21:14 PM
Gravatar
Total Posts 18

Re: Can't add "Gender" into "Registration Page"

Hi Joe,

Can I bother you to provide the <add> section for the Gender label on your mojoProfile.config file?  Maybe I can check whether I messed up on the other attributes.  Thanks in advance!

Great work by the way!

Sherwin

1/18/2008 5:56:43 AM
Gravatar
Total Posts 18439

Re: Can't add "Gender" into "Registration Page"

Hi Sherwin,

Sure, the default setting from mojoProfile.config is:

<add name="Gender"
type="System.String"
allowMarkup="false"
labelResourceKey="GenderLabel"
lazyLoad="false"
requiredForRegistration="false"
allowAnonymous="false"
visibleToAnonymous="false"
visibleToAuthenticated="true"
visibleToUser="true"
editableByUser="true"
regexValidationExpression=""
validationErrorResourceKey=""
onlyAvailableForRoles=""
onlyVisibleForRoles=""
defaultValue=""
includeHelpLink="true"
>
<OptionList>
<Option value="" TextResourceKey="GenderUnselectedLabel"></Option>
<Option value="M" TextResourceKey="GenderMaleLabel"></Option>
<Option value="F" TextResourceKey="GenderFemaleLabel"></Option>
</OptionList>
</add>

By changing only the requiredForRegistration t true, it shows up for me on the Registration page.

Hope it helps,

Joe

1/19/2008 7:25:08 AM
Gravatar
Total Posts 18

Re: Can't add "Gender" into "Registration Page"

Thanks Joe.  Coincidentally, I upgraded to the latest version, and the problem's fixed now.  Thanks!

Sherwin

You must sign in to post in the forums. This thread is closed to new posts.