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) »
  • Using logic in a form
Pages: [1]

Author Topic: Using logic in a form  (Read 824 times)

FastPhil

  • I’m new here
  • *
  • Posts: 23
  • Karma: 1
  • CiviCRM version: 4.04
  • CMS version: Drual 7
  • MySQL version: 5.154
  • PHP version: 5.3.5
Using logic in a form
August 05, 2011, 03:19:29 am
I would like to have a profile that gives the user the option of filling out more information depending upon his answer to a question.  The easy example is a question with three radio buttons.  If button one is pressed user is presented with questionnaire lite, if button 2 user is presented with normal questionnaire, if button 3 none of the above.  Is this possible as part of a profile or am I going to have to go to some form builder in Drupal and then acquire the information from that for CiviCRM.  All of the fields I am talking about are probably custom fields.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Using logic in a form
August 05, 2011, 04:07:13 am
I think you can create a profile with all the questions and then using javascript / jquery show hide required fields depending on what user selects.

HTh
Kurund
Found this reply helpful? Support CiviCRM

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: Using logic in a form
August 05, 2011, 07:52:54 am

might also want to investigate the webform-civicrm integration module and might be able to use webform conditionals there

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

FastPhil

  • I’m new here
  • *
  • Posts: 23
  • Karma: 1
  • CiviCRM version: 4.04
  • CMS version: Drual 7
  • MySQL version: 5.154
  • PHP version: 5.3.5
Re: Using logic in a form
August 05, 2011, 10:50:26 am
Thank you all for the responses They both were very helpfull

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Using logic in a form
August 08, 2011, 12:03:43 am
This is a good option:
http://drupal.org/project/webform_civicrm
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Using logic in a form

This forum was archived on 2017-11-26.