Title: Creating Dropdown Custom Field &#8211; Getting Error
Last modified: August 31, 2016

---

# Creating Dropdown Custom Field – Getting Error

 *  Resolved [ukndoit](https://wordpress.org/support/users/ukndoit/)
 * (@ukndoit)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/creating-dropdown-custom-field-getting-error/)
 * I am trying to create a drop down list for people registering… custom field…
 * I am getting an error that says:
 * Option Configuration File:
    Invalid configuration at line #1.
 * I have tried everything, even starting over, and only putting 2 choices in there.
   Still same thing.
 * Can you please tell me what I am doing wrong?
 * [https://wordpress.org/plugins/s2member/](https://wordpress.org/plugins/s2member/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Thread Starter [ukndoit](https://wordpress.org/support/users/ukndoit/)
 * (@ukndoit)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/creating-dropdown-custom-field-getting-error/#post-6975310)
 * also, I tried it in every browser. And this is a new website, not tons of plugins,
   etc. so not sure how a conflict could be in there if that is what is causing 
   it…
 *  [krumch](https://wordpress.org/support/users/krumch/)
 * (@krumch)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/creating-dropdown-custom-field-getting-error/#post-6975370)
 * Most likely you type some “wrong” character. Use only alphanumerics and low caps
   as ID.
 *  Thread Starter [ukndoit](https://wordpress.org/support/users/ukndoit/)
 * (@ukndoit)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/creating-dropdown-custom-field-getting-error/#post-6975419)
 * I tried just two:
 * Accountant Personal
    Accountant Business
 * just to see if it would work. It did not, so then I tried:
 * Accountant1
    Accountant2
 * still it did not work.
    I seen someone said to put a / behind it so I tried:
 * Accountant Personal\
    Accountant Business\
 * that did not work.
    So I tried:
 * Accountant1\
    Accountant2\
 * still did not work.
    Same errors.
 *  Thread Starter [ukndoit](https://wordpress.org/support/users/ukndoit/)
 * (@ukndoit)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/creating-dropdown-custom-field-getting-error/#post-6975426)
 * Okay, I also deactivated every plugin, 1 at a time, kept clearing the cahce and
   reloading the general option page, and trying to add the custom field again. 
   Same issue, no matter what.
 * So then I tried changing the theme to the pre-installed Theme that comes default
   with WordPress. Same result.
 * So it must have something to do with the s2member files.
 * Would it be easier for me to add the custom field directly in the database? if
   so, where does it store the fields?
 *  [krumch](https://wordpress.org/support/users/krumch/)
 * (@krumch)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/creating-dropdown-custom-field-getting-error/#post-6975441)
 * I mean the “unique ID”, which is set when you create the field, not the field
   name.
 *  Thread Starter [ukndoit](https://wordpress.org/support/users/ukndoit/)
 * (@ukndoit)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/creating-dropdown-custom-field-getting-error/#post-6975453)
 * Oh. The unique Id, I set this way:
 * niche
 * just that single word.
    then for the Field Label I put: Your Industry
 *  [krumch](https://wordpress.org/support/users/krumch/)
 * (@krumch)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/creating-dropdown-custom-field-getting-error/#post-6975454)
 * OK, so this should be set. Then you must set “option values” and “option names”
   pairs, divided by | (vertical bar), did you?
 *  Thread Starter [ukndoit](https://wordpress.org/support/users/ukndoit/)
 * (@ukndoit)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/creating-dropdown-custom-field-getting-error/#post-6975458)
 * wow, that is what the problem was. My bad. I thought if I did not put a value/
   label, that the option would be there for BOTH. my bad.
 * That fixed it.
 * Thank you so much!!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Creating Dropdown Custom Field – Getting Error’ is closed to new replies.

 * ![](https://ps.w.org/s2member/assets/icon-256x256.png?rev=980067)
 * [s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions](https://wordpress.org/plugins/s2member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/s2member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/s2member/)
 * [Active Topics](https://wordpress.org/support/plugin/s2member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/s2member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/s2member/reviews/)

## Tags

 * [custom field](https://wordpress.org/support/topic-tag/custom-field/)
 * [drop down menu](https://wordpress.org/support/topic-tag/drop-down-menu/)
 * [Registration](https://wordpress.org/support/topic-tag/registration/)

 * 8 replies
 * 2 participants
 * Last reply from: [ukndoit](https://wordpress.org/support/users/ukndoit/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/creating-dropdown-custom-field-getting-error/#post-6975458)
 * Status: resolved