CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • how to build in a "check" for a field
Pages: [1]

Author Topic: how to build in a "check" for a field  (Read 849 times)

pattiezee

  • Guest
how to build in a "check" for a field
October 26, 2009, 11:40:50 am
Hi there,

I've just set up a membership signup form. Here's the test-drive version:
http://membership.outingclubofeastyork.com/drupal-6.14/civicrm/contribute/transact?reset=1&action=preview&id=1

You will notice that I have 2 types of memberships: Adult (for one person) and Family (multiple registrants).

There is also a field under "Member Profile" that allows you to enter the name of your spouse/partner if you're enrolling them as a member as well.

Thing is, currently there is no way to stop someone from selecting "Adult" and then entering their spouse/partner's name anyway.

Is there a check available that could be included in order to make sure the spouse/partner field can only be completed if the "Family" membership option is selected?

If so, how would I do that? If it involves programming, I don't have the skills to do it, but if you can give me a basic idea of how it could be done, I may be able to get someone else to do it for me.

Thanks so much,

Patricia

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: how to build in a "check" for a field
October 26, 2009, 12:29:42 pm

you will need to use the validate hook OR javascript in customized templates to do what you want. Both require some programming skills

check:

http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in,+Profile,+Contribution+and+Event+Registration+Screens
http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification

for more details for the above options

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

pattiezee

  • Guest
Re: how to build in a "check" for a field
October 26, 2009, 12:37:46 pm
Thank you!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • how to build in a "check" for a field

This forum was archived on 2017-11-26.