Skip to:
Content
Pages
Categories
Search
Top
Bottom

Retaining xProfile field values on register submit


  • David Jensen
    Participant

    @dkjensen

    On the BP registration page, I have several xProfile fields of varying field types.

    If I do a test registration, and purposely leave a required field blank (or similar action to trigger an error message), all the xProfile field values get erased and I have to re-enter them.

    Looking at the code the fields are generated using an admin_field_html() method, but I do not see a way to retain their values if an error occurs.

    Is this possible or can someone lead the way on how to do this?

Viewing 1 replies (of 1 total)

  • Henry Wright
    Moderator

    @henrywright

    Hi @dkjensen

    I’m pretty sure the reg form uses the POST method so the submitted values should be available as an associative array. You should be able to access them like this:

    $_POST['name']

Viewing 1 replies (of 1 total)
  • The topic ‘Retaining xProfile field values on register submit’ is closed to new replies.
Skip to toolbar