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 Profiles (Moderator: Dave Greenberg) »
  • optional, but if selected, required
Pages: [1]

Author Topic: optional, but if selected, required  (Read 627 times)

hudsonkane

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: drupal 6.2
  • MySQL version: 5
  • PHP version: 5.x
optional, but if selected, required
March 04, 2011, 08:17:11 pm
I have looked for several days for an answer to this and am hoping someone can offer a suggestions.  We would like to have a user registration page with the usual fields of name/address/email, with additional blocks like
request to be an administrator, request to be a guest speaker, etc
if they would like to request any or all of these then information withing these blocks would be required
initially we would like these blocks to be collapsed, I see that option on several of the help pages, but the checkbox does not appear on our profile administration page.  Is this type of form possible?  If not would anyone offer any suggestions as to how we could go about this?

My initial thinking was to keep a single integrated form, and if they made a request to be a speaker for example they would automatically get put in the "request to be speaker" group.  I could then look through the users in this group and after vetting them, move them to the "Trusted speaker" group.

Thank you very much (and thank you for civicrm, it is truly incredible)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: optional, but if selected, required
March 05, 2011, 04:50:48 am
Hi,

Nothing out of the box, but a few hooks and custom template away.

You'd need to create a custom template and add a bit of jQuery to hide/show the blocks.

On the server side, add a hook to validate that whatever mandatory based on your specific rules are filled.
and another hook to put the created contact to the right groups (post).

Read our chapter in the book about hooks and apis to get a more complete explanation.

X+
X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

hudsonkane

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: drupal 6.2
  • MySQL version: 5
  • PHP version: 5.x
Re: optional, but if selected, required
March 05, 2011, 05:20:28 am
thank you for the reply.  that is probably beyond what we are able to do at the moment so will likely go with individual forms for the requests.  If we ever end up revisiting we will create it as a module.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • optional, but if selected, required

This forum was archived on 2017-11-26.