Book Image

CiviCRM Cookbook

Book Image

CiviCRM Cookbook

Overview of this book

CiviCRM is a web-based, open source, Constituent Relationship Management (CRM) software geared toward meeting the needs of non-profit and other civic-sector organizations.Organizations realize their mission via CiviCRM through contact management, fundraising, event management, member management, mass e-mail marketing, peer-to-peer campaigns, case management, and much more.CiviCRM is localized in over 20 languages including: Chinese (Taiwan, China), Dutch, English (Australia, Canada, U.S., UK), French (France, Canada), German, Italian, Japanese, Russian, and Swedish.CiviCRM Cookbook will enhance your CiviCRM skills. It has recipes to help you use CiviCRM more efficiently, integrate it with CMSs, and also develop CiviCRM.This book begins with recipes that help save time and effort with CiviCRM. This is followed by recipes for organizing data more efficiently and managing profiles.Then you will learn authentication and authorization and managing communication with contacts.Then you will be guided on using the searching feature and preparing reports. We will then talk about integrating Drupal and CiviCRM. You will also be taught to manage events effectively. Finally, learn about CiviCampaign, Civimember, and developing CiviCRM.
Table of Contents (19 chapters)
CiviCRM Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using jQuery to control form elements


jQuery is a versatile method used to alter any HTML page. In CiviCRM, we can use it to accomplish tasks that are impossible using custom templates or CSS. A common problem is how to expose different price sets on an event registration form.

Getting ready

In this example we have a membership organization called Inner City Arts. We have enabled the CiviMember Roles Sync module. This module synchronizes membership status to a Drupal role. In this case, if an individual is a current member of Inner City Arts, CiviMember Role Sync automatically assigns them the role of Member in Drupal. This means that when a member logs in, we can tell that they are a member of Inner City Arts because they have the Member role in Drupal.

If you want to play around with jQuery and see how the components work, you can use Firefox as your browser and install the Firebug extension, or use Google Chrome.

How to do it…

In this recipe, we will use jQuery to show different price sets...