HowTo: Add a Terms of Agreement on Registration Page

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

Using Drupal 6.x:
______________________________

goto (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 (verbage 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)

Explaination:
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 Sevice 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 whats been created! : )






Using Drupal 5.x:
______________________________

goto (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 (verbage 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)

Explaination:
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 Sevice 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 whats been created! : )






Using Drupal 4.7:
______________________________

goto (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 (verbage 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)

Explaination:
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 Sevice 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 whats 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.

=-=

VeryMisunderstood - September 24, 2007 - 23:29

Possible residule effect of the method outlined here in the handbook page limits bot registration as bots don't seem to checkmark the required terms and conditions checkbox and as such are not registered.

_____________________________________________________________________
Confusious says:
"Those who seek drupal answers should use drupal search!" : )

easy way

bdtushar - July 4, 2008 - 11:41

install checkbox_validate module, then from profile use chackbox and check
1. user must enter a value
2. show in registration page

 
 

Drupal is a registered trademark of Dries Buytaert.