Registration validation of DDL not happening

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.
3/23/2015 12:49:35 PM
Gravatar
Total Posts 128

Registration validation of DDL not happening

I think I've just been caught out by the issue discussed here in 2011:

https://www.mojoportal.com/Forums/Thread.aspx?pageid=5&t=9218~1

i.e. I'm unable to make this validator work:

regexValidationExpression="VOL|NT"

... with this profile option list:

            <OptionList>
                <Option value="" TextResourceKey="Please select..."></Option>
                <Option value="VOL" TextResourceKey="the first option"></Option>
                <Option value="NT" TextResourceKey="another option"></Option>
            </OptionList>

Also, requiredForRegistration="true" does not prevent the user registering without selecting a value other than the default "Please select...". Perhaps this could be made to work when the control value is ""?

A bug? Any workarounds?

 

3/23/2015 1:05:13 PM
Gravatar
Total Posts 18439

Re: Registration validation of DDL not happening

I would suggest try a regex that does not allow empty string. A dropdown list with an empty value could be a valid choice even if required becuase there was still a selected dropdown item.

3/23/2015 1:54:36 PM
Gravatar
Total Posts 128

Re: Registration validation of DDL not happening

I'm no expert on regex, but I thought that "VOL|NT" would not pass an empty string, and would only pass for one of my specified values. I've also tried "^VOL|NT$" and "^.+$" but still failed to stop the user registering. Am I missing something?

3/23/2015 2:21:52 PM
Gravatar
Total Posts 18439

Re: Registration validation of DDL not happening

I will look into this when I get a chance.

3/25/2015 11:46:57 AM
Gravatar
Total Posts 18439

Re: Registration validation of DDL not happening

this is now fixed in the source code repository. setting a dropdown to requiredForRegistration will use a required field validator and will not allow empty value.

3/25/2015 11:49:14 AM
Gravatar
Total Posts 128

Re: Registration validation of DDL not happening

thanks Joe

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