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) »
  • Adding new fields - drop down menu not working
Pages: [1]

Author Topic: Adding new fields - drop down menu not working  (Read 3370 times)

josh.bean

  • Guest
Adding new fields - drop down menu not working
August 20, 2009, 05:16:31 pm
The issue I'm having is when trying to create a new profile field.  I was able to successfully create 4 fields (First Name, Last Name, Custom Field, and Address) but now it only shows the first drop down menu that allows me to select:
When I attempt to create a new profile field the second drop down menu no longer shows up.  It used to!?

So when creating the new field the first option is: Field Name, and the options are: Contacts, Individuals, Households, Organization...etc.
Before when I selected Contacts, it would then give me a second drop down menu that had: First Name, Last Name, Email, Address,...etc.

That second field won't show up anymore.
Does anyone know why?



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: Adding new fields - drop down menu not working
August 20, 2009, 05:24:53 pm

can you try doing the same process on drupal.demo.civicrm.org and see if it works there

also on your site, you might want to install firebug and see if you get a JS error etc

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

josh.bean

  • Guest
Re: Adding new fields - drop down menu not working
August 20, 2009, 06:01:54 pm
Ok so I tried it on the demo site and it worked perfectly.  It used to work like that before when I was adding profiles and now it has stopped working.

I use firefox as my browser, and so I thought I'd try safari, that didn't work either.

And I've installed Firebug, although I'm not really sure what I'm looking for.  I didn't really see a JS error or anything.
Here is the code around that drop down menu:
Quote
<script type="text/javascript">
</script>
<select id="field_name[0]" onchange="swapOptions(this.form, 'field_name', 0, 4, 'hs_field_name');" name="field_name[0]" onclick="showLabel();">
</select>
<select id="field_name[1]" onchange="swapOptions(this.form, 'field_name', 1, 4, 'hs_field_name');" name="field_name[1]" onclick="showLabel();" style="display: none;"> </select>
<select id="field_name[2]" onchange="swapOptions(this.form, 'field_name', 2, 4, 'hs_field_name');" name="field_name[2]" onclick="showLabel();" style="display: none;"> </select>
<select id="field_name[3]" name="field_name[3]" onclick="showLabel();" style="display: none;"> </select>

Thanks so much for your help with this.  civiCRM is such a great program!

josh.bean

  • Guest
Re: Adding new fields - drop down menu not working
August 20, 2009, 06:05:04 pm
Not sure what this means but I did get:
Quote
unterminated string literal
when I ran firebug.
?

Thanks again for the help.

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Adding new fields - drop down menu not working
August 20, 2009, 09:27:40 pm
Just a guess - Do you have any custom data (that you added recently) which has special characters like single/double quotes or any other ? If yes can you disable that for a moment and check again.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

josh.bean

  • Guest
Re: Adding new fields - drop down menu not working
August 21, 2009, 10:33:31 am
Awesome!  I deleted all of the custom fields and now it works fine.
Does anyone know how I can get around this?  Is there something I did wrong with the custom fields?

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: Adding new fields - drop down menu not working
August 21, 2009, 11:04:49 am

did u name the custom field exactly the same? and created it with the same values for the other fields? if not, can u do so and try to recreate

thanx

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 Profiles (Moderator: Dave Greenberg) »
  • Adding new fields - drop down menu not working

This forum was archived on 2017-11-26.