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 Reports - Adding Multiple Choice
Pages: [1]

Author Topic: Custom Reports - Adding Multiple Choice  (Read 1299 times)

seashell

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Custom Reports - Adding Multiple Choice
February 12, 2010, 10:42:49 am
Custom Data - Custom Fields, under multiple choice options, there is a link for "another choice" which goes to:

http://openacadia.ca/administrator/index2.php?option=com_civicrm&task=civicrm/admin/custom/group/field&action=add&reset=1&gid=1#optionFieldLink

This is to add another choice to the custom field. There are two, we would like to use 4 or 5. When this link is clicked, the browser registers an error:

"showrow is not defined". cannot find this text in any search result. :(

Anyone know why this might occur?


seashel

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom Reports - Adding Multiple Choice
February 12, 2010, 11:57:00 am
showrow() is a Javascript function that's loaded from js/Common.js. It sounds like your site is not quite configured properly - so (some)  javascript files are not available. Or possibly your browser is not loading javascript? I would enable Firebug in Firebox - and use the console to get more details. Also check your resource URLs (Administer >> Global Settings >> Resource URLs) - and do a view source on that page to see if Common.js is being loaded - and check that the URL for it will load in your browser.
Protect your investment in CiviCRM by  becoming a Member!

rchapman

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
Re: Custom Reports - Adding Multiple Choice
February 16, 2010, 12:28:59 pm
Hi there,

seashell is one of our admins, I am the IT consultant working with civicrm.

I did follow your advice and found that the Common.js is being loaded via the ways you've shown. I will be searching for the firebug errors once I get firebug installed.

one thing we found is that when you initially set up the report, save it once and go back in, you can then add more choices without error. Working as intended? or small bug?

~ross

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom Reports - Adding Multiple Choice
February 16, 2010, 08:48:24 pm
Hi Ross - I'm a bit confused by the terms used - the topic says 'report', but the URL in seashell's post is for adding a custom field with multiple choice options (so I think this is what we're talking about - but not sure). In any case, getting a jScript error is never 'expected behavior'. I'd recommend taking a minute to go through this flow on our public demo so you can see it functioning as expected - and then do the debug on your site:

Login at:
http://drupal.demo.civicrm.org/
demo demo

Navigate to:
http://drupal.demo.civicrm.org/civicrm/admin/custom/group/field?reset=1&action=add&gid=1
Protect your investment in CiviCRM by  becoming a Member!

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

This forum was archived on 2017-11-26.