ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Custom user fields not being populated on register

June 15, 2011 10:31pm

Subscribe [2]
  • #1 / Jun 15, 2011 10:31pm

    brink

    2 posts

    I’ve setup Custom Member Fields, ie: Country and Company, however when the user registers, the data doesn’t get applied to the user.  I have it int he forum, (I even have hooks in there that email the input data) however it seems to not enter data.

    Field Name: company
    Field Label: Company
    Is field visible in registration page?  YES

    In my registration:  <input type=“text” name=“company” value=”” maxlength=“120” class=“input” size=“40” style=“width:300px” />

    So I’m not sure whats going wrong.  Any hints?

  • #2 / Jun 16, 2011 9:11am

    Sue Crocker

    26054 posts

    Welcome to the ExpressionEngine forums, brink.

    Are you using the registration form that comes with EE, or are you rolling your own? I suspect the latter.

    The name= field is off.

    Here’s an example taken from one of my sites using the default registration form:

    <th> Twitter</th>
    
    <td><input type="text" name="m_field_id_1" value="" class="input" maxlength="100" size="40" style="width:100%;" /></td>

    Notice that name is m_field_id_1? That’s because the table where those additional member fields reside are in the exp_member_fields database.

    See the attached screen shot.
    I suggest you view the source of the built in member registration form and make modifications to match your design if you’re hard coding it.

    Does that help?

  • #3 / Jun 16, 2011 1:36pm

    brink

    2 posts

    Thank you for your response.  I can only find how to “roll your own registration form” in the docs, I cant find where to embed one anywhere.

    One would think that “field name” would represent what you want the field to be named, however…

  • #4 / Jun 16, 2011 2:16pm

    brink

    2 posts

    I got the fiend ID’s from the database, it appears to be working now, thanks.

  • #5 / Jun 17, 2011 7:52am

    Sue Crocker

    26054 posts

    Glad that worked for you.. If anything else comes up, please do let us know in a new thread..

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases