Currently, only username and phone number are captured for signups. It would be great if the admin settings UI can provide a way to select user profile fields to capture when a user signs up for an event.

CommentFileSizeAuthor
#5 signup.JPG7.96 KBtborrome

Comments

tborrome’s picture

As a reference, this module does something like this.
http://drupal.org/project/volunteer_timeslots
(if you check the admin settings - admin/settings/volunteer_timeslots, there's a section to "User profile fields to include in the volunteer list for organizers")

stborchert’s picture

You can completely change the signup form (and control which information should be entered) by modifying theme_signup_user_form() (located in signup.theme).
If you would like to display profile information you can insert something like this (untested and surely not functional!):

if ($user->uid) {
  $form['signup_form_data']['profile']['field_1'] = array(
    '#type' => 'textfield',
    '#title' => t('Field 1 from Profile'),
    '#size' => 40, 
    '#maxlength' => 64,
  );
  ...
}

hth,

 Stefan

shanefjordan’s picture

Stefan is correct, but to pull the profile fields, you could set a default for the field. For instance, I have mine setup to ask for every person's first name and last name. If they are logged in, then I use the profile fields populate the user's name:

    $form['signup_form_data']['fname'] = array(
      '#type' => 'textfield',
      '#title' => t('First Name'),
      '#size' => 40, '#maxlength' => 64,
      '#required' => true,
    );
    $form['signup_form_data']['lname'] = array(
      '#type' => 'textfield',
      '#title' => t('Last Name'),
      '#size' => 40, '#maxlength' => 64,
      '#required' => true,
    );

    if ($user->uid) {
      $form['signup_form_data']['fname']['#default_value'] = $user_profile['Personal Information']['profile_first_name']['value'];
      $form['signup_form_data']['lname']['#default_value'] = $user_profile['Personal Information']['profile_last_name']['value'];
    }
dww’s picture

Category: feature » support
Status: Active » Fixed

Sounds like you found out what you needed from other people's replies, calling this a support request and marking it fixed.

The feature you really want is here: #29568: Flexible number and type of fields

tborrome’s picture

Status: Fixed » Active
StatusFileSize
new7.96 KB

Thanks - Just a quick follow up. I tried this approach and had a minor problem... when I modified the form theme_signup_user_form from signup.theme (changed phone to comments), the Signups tab's "Extra Information" got screwed up. The comments were overlapped with the name. see screenshot.

How/Where do I fix this?

tborrome’s picture

figured it out ... as because of using the name "comments" which probably has conflicts in the theme... other names displays fine.

dww’s picture

Status: Active » Fixed

Great.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.