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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Custom yes/no
Pages: [1]

Author Topic: Custom yes/no  (Read 1764 times)

CousiMo

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 2
Custom yes/no
July 07, 2008, 01:18:14 pm
When editing a profile which has a list of custom fields  and some of the fields are YES/NO   when editing anyone of them, it automatically defaults to either a yes/no for all the other fields,    is there away for me to keep it blank? 

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Custom yes/no
July 08, 2008, 02:22:38 am
Only if you have selected the custom Yes/No, it defaults to respective value. Other wise no defaults are set.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

CousiMo

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 2
Re: Custom yes/no
July 08, 2008, 05:34:43 am
well the issue still remains, when i edit a number of yes/no questions within the same tab,   it defaults all of them, (or picks anything if default wasn't selected,)

example.. Tab1  has a list of questions 1-10  each one is a yes/no question,   i interviewed the person and has answered 4 out of the 10 questions, when i edit the tab to get to the questions, and i enter the correct responses for the 4 questions.. the remaining 6 get an automatic response, even though i don't know the answer to those questions.




FredJones

  • Guest
Re: Custom yes/no
July 09, 2008, 08:35:59 am
Quote from: Yashodha Chaku on July 08, 2008, 02:22:38 am
Only if you have selected the custom Yes/No, it defaults to respective value. Other wise no defaults are set.

I do not see this behavior actually. I went to http://drupal.demo.civicrm.org/ and made a new tab called test and added two fields: a and b. Neither has a default value nor is either required. I then made a new contact and viewed his test tab and neither a nor b had a value.

Then I edited the test tab and selected Yes for a ONLY and submitted. When the page returned, b was set to No by itself.

attached is before and after shots showing this.

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: Custom yes/no
July 09, 2008, 12:14:36 pm
This is a bug / feature (more a bug, IMO)

a custom yes/no field is assumed to be either Yes or No. If not marked, we store as No.

obviously not the best solution. But you might want to consider using creating a custom radio field with labels Yes and No. I'd probably use the value of 1 for Yes and 2 for No to get around any potential bugs with 0 and CiviCRM

lobo
« Last Edit: July 09, 2008, 12:33:46 pm by Dave Greenberg »
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

FredJones

  • Guest
Re: Custom yes/no
July 10, 2008, 02:38:51 am
Thank you

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Custom yes/no

This forum was archived on 2017-11-26.