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 CiviContribute (Moderator: Donald Lobo) »
  • How to hide membership/contribution radio button selection?
Pages: [1]

Author Topic: How to hide membership/contribution radio button selection?  (Read 1247 times)

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
How to hide membership/contribution radio button selection?
June 06, 2008, 08:46:04 am
I have a CiviContribute membership form here:

http://variantcube.com/techsummer/civicrm/contribute/transact?reset=1&id=2

I would like to hide the     "I am registering for Summer 2008 Tech Services Classes " radio button but still allow that button's data to process to the database.  I tried removing the include line of code in "main.tpl" and this removes the line, but then it won't process the form since that radio button is required.

I just don't want our clients to have to select that button - it's a default selection so it's unnecessary.  Can I hide it but still have the value process?

Thanks in advance.

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 hide membership/contribution radio button selection?
June 06, 2008, 12:49:49 pm
You can potentially do it this way:

1. create a customized template for that page. You'll need to make it specific for that id (CRM/Contribute/Form/Contribution/MembershipBlock.tpl
)

2. in that template, comment out the radio buttons for selectMembership

3. Add a hidden field with the same name (selectMembership) and value, 1

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

ansm

  • Guest
Re: How to hide membership/contribution radio button selection?
June 18, 2008, 11:26:05 am
In a similar note, I was able to avoid that.
I'm at Home » CiviCRM » Administer CiviCRM » Manage Contribution Pages » Configure Contribution Page » Membership Settings
Membership Section Enabled? Yes
Membership Types
  Include these membership types: I am Registering for...
(only one type is checked, and it's specified as the default.)
When I go to the registration page, the membership type is selected but not displayed.  Maybe you can fudge a membership page into what you want.  I haven't tried making a civievent page yet.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • How to hide membership/contribution radio button selection?

This forum was archived on 2017-11-26.