HowTo: Add a Terms of Agreement on Registration Page

Last modified: February 9, 2009 - 18:32

This is a quick and easy way to have users agree to a terms of service during registration using the profile.module. Ensure that the profile.module (part of core) is enabled, before beginning this recipe. Those looking for a module that does something similar should look to the legal.module. The "Terms of Use" module is another option.

Using Drupal 6.x:
______________________________

Go to (administer > profiles)
Add a "checkbox" field, by clicking on the checkbox link under Add new field.

Now you are presented with a form, for the new profile field.
Fill out the form as follows (wording can be changed to suit your own use case)

Category: Terms Of Service (This will be the category under which the terms of service will be shown on the registration page)

Title: I Agree (Title of the checkbox itself)

Form Name: profile_tos (The field the checkbox will occupy in the database)

Explanation:
Here you can list your Terms of Service that should be read over, before checkmarking the checkbox. or you could create a node for the Terms of Service and link to that node in this field.

Weight: Set as you wish

Visibility: Private field, content only available to privileged users.

Page title: Leave Blank

Now all you have to do is check mark the checkboxes at the bottom of page titled:
The user must enter a value & Visible in user registration form.

-----Submit Form-----

Now visit the new registration form to see what's been created! : )






Using Drupal 5.x:
______________________________

Go to (administer > profiles)
Add a "checkbox" field, by clicking on the checkbox link under Add new field.

Now you are presented with a form, for the new profile field.
Fill out the form as follows (wording can be changed to suit your own use case)

Category: Terms of Service (This will be the category under which the terms of service will be shown on the registration page)

Title: I Agree (Title of the checkbox itself)

Form Name: profile_tos (The field the checkbox will occupy in the database)

Explanation:
Here you can list your Terms of Service that should be read over, before checkmarking the checkbox. or you could create a node for the Terms of Service and link to that node in this field.

Weight: Set as you wish

Visibility: Private field, content only available to privileged users.

Page title: Leave Blank

Now all you have to do is check mark the checkboxes at the bottom of page titled:
The user must enter a value & Visible in user registration form.

-----Submit Form-----

Now visit the new registration form to see what's been created! : )






Using Drupal 4.7:
______________________________

Go to (administer > settings > profiles)
Add a "checkbox" field, by clicking on the checkbox link under Add new field.

Now you are presented with a form, for the new profile field.
Fill out the form as follows (wording can be changed to suit your own use case)

Category: Terms Of Service (This will be the category under which the terms of service will be shown on the registration page)

Title: I Agree (Title of the checkbox itself)

Form Name: profile_tos (The field the checkbox will occupy in the database)

Explanation:
Here you can list your Terms of Service that should be read over, before checkmarking the checkbox. or you could create a node for the Terms of Service and link to that node in this field.

Weight: Set as you wish

Visibility: Private field, content only available to privileged users.

Page title: Leave Blank

Now all you have to do is check mark the checkboxes at the bottom of page titled:
The user must enter a value & Visible in user registration form.

-----Submit Form-----

Now visit the new registration form to see what's been created! : )






Special Thanks: to Drupal User Florian for bringing this method to the attention of Community Members by way of the forums.

Thanks: to Drupal User Chill35 for proofreading and double checking steps involved to insure that steps are correct.

 
 

Drupal is a registered trademark of Dries Buytaert.