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 CiviEvent (Moderator: Yashodha Chaku) »
  • Admin-only registration options
Pages: [1]

Author Topic: Admin-only registration options  (Read 1004 times)

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Admin-only registration options
October 31, 2011, 02:42:28 pm
I'm looking for a way to provide registration options to admins only. I know I can do this using a registration field with visibility of "Admin". But consider this scenario:

I have a price set configured with a required Registration Fees field (checkbox with multiple options) with visibility set to "Public". This works great and forces a registrant to choose at least one option.

As an admin, I want to be able to register someone without choosing ANY of these Registration Fees field options. I've tried to do this by setting up another price field with visibility of "Admin". However, I'm still forced to choose one of the Registration Fees field options because the field is required. I've tried making the Registration Fees not required, but then registrants aren't forced to choose a Registration Fees field option.

Is there any way to set things up to accommodate my requirement?

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: Admin-only registration options
October 31, 2011, 03:17:01 pm

Maybe use the hook_civicrm_buildForm hook to eliminate the "required" rules for those price elements that an admin can bypass

in general, civi is not very good with "conditional rules / behavior" for various fields. Does seem like a fairly hard problem to solve

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Admin-only registration options

This forum was archived on 2017-11-26.