Require new users to agree to a terms of service

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
1/31/2010 6:26:06 PM
Gravatar
Total Posts 19

Require new users to agree to a terms of service

Before a new user registers, I need the user to check a box to confirm that they agree to a terms of service.  I've been trying to use a user profile property, but I can't get the validation to work.  I can see the true/false value of the checkbox in the mp_UserProperties table, so I know it's working,  but I can't get validation to work.  Is it possible to require the box to be checked?  Is there a better way to do this?  I'm using the following in my custommojoProfile.config:

<add name="AgreeToTOS"
type="System.Boolean"
labelResourceKey="I agree to the terms of service"
requiredForRegistration="true"
includeHelpLink="false"
visibleToUser="false"
editableByUser="false" />
 

regexValidationExpression doesn't seem to work for a boolean.

 

2/2/2010 11:28:57 AM
Gravatar
Total Posts 2253

Re: Require new users to agree to a terms of service

Hi,

Have you read the documentation on creating a registration agreement? http://www.mojoportal.com/creatingaregistrationagreement.aspx.

If you create the agreement, it will show up on the registration page. You will not have a checkbox for accepting but you could include text in your agreement that stating, "By clicking the 'Create Account' button you agree to these terms..." or something like that.

HTH,
Joe D.

2/2/2010 3:56:02 PM
Gravatar
Total Posts 19

Re: Require new users to agree to a terms of service

Thanks for the reply Joe!  Yes I did read the documentation, and I did setup a registration agreement.  However, the lawyer reviewing the site wants the user to actually check the box before being able to register. 

As a workaround, I'm going to change the property to type="System.String" and make the user type the word "agree".

Thanks,

Tom

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