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 CiviEvent (Moderator: Yashodha Chaku) »
  • Unwanted Email Field in Event Registration Form
Pages: [1]

Author Topic: Unwanted Email Field in Event Registration Form  (Read 2689 times)

farmrchrys

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 2
    • Spokane Moves to Amend the Constitution (under development)
  • CiviCRM version: CiviCRM 4.4.6
  • CMS version: Drupal 7.31
  • MySQL version: MySQL 5.5.37
  • PHP version: PHP 5.3.28
Unwanted Email Field in Event Registration Form
July 09, 2008, 04:07:04 pm
Drupal 5.7 and CiviCRM 1.9: I have an event configured, a conference, for which I have an on-line registration form. I use a CiviCRM profile as part of the on-line registration form. At the top of the form, before the profile fields appear, there are the Event fees listed that I configured (a required field). Just below that, and above where the profile fields start, is a field labeled "Email Address". This is also a required field. I don't know (or can't remember) where this came from. Weird thing is, it doesn't show up with any email address in it. In the profile I added the primary email address since I also want visitors to be able to set up user accounts from this form and it dutifully displays my primary email address when I view the registration form.

Looking at the page source in my browser, the errant email field is identified as "email-5". Here is the code from the page source:

Code: [Select]
<table class="form-layout-compressed">
    <tr><td class="label nowrap"><label for="email-5">  Email Address
   <span class="marker" title="This field is required.">*</span>
</label></td><td><input size="30" maxlength="60" name="email-5" type="text" id="email-5" class="form-text big required" /></td></tr>
 </table>

I've been round and round the various places where this registration page is configured and can find no way to make this email field disappear. I don't want it there. Any help for me out there?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Unwanted Email Field in Event Registration Form
July 09, 2008, 11:34:50 pm
Hi,

That's the only mandatory field, and it's there even if you don't put any profile.

My workaround what to use a bit of javascript to move the email from above to within the first profile, and not put the email in the profile.

Yes, it would be better if this field is not displayed if the registration use a template that has the email (or an option not to display the email).

Haven't tried to customise that part of the template, don't know the implication if the email-5 isn't in the form.
X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

farmrchrys

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 2
    • Spokane Moves to Amend the Constitution (under development)
  • CiviCRM version: CiviCRM 4.4.6
  • CMS version: Drupal 7.31
  • MySQL version: MySQL 5.5.37
  • PHP version: PHP 5.3.28
Re: Unwanted Email Field in Event Registration Form
July 11, 2008, 07:07:01 pm
Thanks, Xavier, for getting back to me.

The strange thing is that on the conference on-line registration form that I'm referring to the email-5 field is blank! If it was pre-populated with the the user's email address, it would be fine. I also have elsewhere on the site a membership form where the email (email-5) IS correctly filled in with the user's email address. This is strange behavior. Do you have any idea why the field on the event form is blank?

Chrys

farmrchrys

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 2
    • Spokane Moves to Amend the Constitution (under development)
  • CiviCRM version: CiviCRM 4.4.6
  • CMS version: Drupal 7.31
  • MySQL version: MySQL 5.5.37
  • PHP version: PHP 5.3.28
Re: Unwanted Email Field in Event Registration Form
July 11, 2008, 07:55:44 pm
Sorry, Folks,
I'm actually running on Drupal 5.2.
Chrys

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Unwanted Email Field in Event Registration Form
July 13, 2008, 05:09:07 pm
Email-5 refers to the Email Address which is assigned to the "Billing" location. You might try debugging things a bit by making sure you're logged in as a user who's contact has an Email address in their Billing location. It's possible that there's a bug in 1.9 with the Event Reg form - so depending on what you find - you should try and recreate on the public demo (2.0). http://demo.civicrm.org/drupal
Protect your investment in CiviCRM by  becoming a Member!

farmrchrys

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 2
    • Spokane Moves to Amend the Constitution (under development)
  • CiviCRM version: CiviCRM 4.4.6
  • CMS version: Drupal 7.31
  • MySQL version: MySQL 5.5.37
  • PHP version: PHP 5.3.28
Re: Unwanted Email Field in Event Registration Form
July 14, 2008, 08:29:56 am
Thanks, Dave.

It's true that when I manually add a billing email address for the user on my site, then the user's email address does show up in the email-5 slot for the conference registration form. On the 2.0 demo site, I set up an event and created a user and an on-line reg form. Looking at the user's contact record, there is no billing email, yet the primary email address does appear in the email-5 slot (which shows up as web@livefree.nl despite my setting it originally as something else - I guess this is a security measure). Again, on my site, for the on-line membership join/renew form, the user's primary email does show in the email-5 slot. This seems to be the way it's intended to work. I hope there's a way to get the event registration email-5 slot to function as is should.

One of the main reasons we are transitioning to CiviCRM is so that our contacts can enter and update their own contact information. It's already cumbersome enough for them. I can't really imagine asking them to make sure to also enter their billing email every time they sign-up or update their listing. Barring a fix to the bug, is there a way that it could be set up so that when a primary email is entered, it's automatically copied to the billing email-5 field?

Chrys

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Unwanted Email Field in Event Registration Form
July 14, 2008, 11:49:37 am
Hmm - I might have misled you a bit, as it looks like we default that field to the logged in contact's Primary location email address. Here's my test case on the demo:

* Login as demo demo (the associated contact is Susan Demouser - contact 102)

* Go to view her contact details : http://drupal.demo.civicrm.org/civicrm/contact/view?reset=1&cid=102 (I've set the primary location email to susan.primary@test.org). (NOTE: Folks have created quite a few other locations and email addresses for this contact - so it's a decent test of which email get's defaulted in event registration. )

* Go to test-drive an Event - and the Email field has the expected primary email address
http://drupal.demo.civicrm.org/civicrm/event/register?reset=1&action=preview&id=2

(If you're accessing event registration as anonymous (not logged in) of course that field should be empty.)
Protect your investment in CiviCRM by  becoming a Member!

farmrchrys

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 2
    • Spokane Moves to Amend the Constitution (under development)
  • CiviCRM version: CiviCRM 4.4.6
  • CMS version: Drupal 7.31
  • MySQL version: MySQL 5.5.37
  • PHP version: PHP 5.3.28
Re: Unwanted Email Field in Event Registration Form
July 14, 2008, 02:04:43 pm
Thanks. Okay, that's how I thought it was supposed to work (primary email is the one that email-5 displays in the reg form). I logged in to the demo and visited the test-drive event page and yup, susan.primary@test.org is in the email-5 slot but when I went and checked her contact info page carefully, susan.primary@test.org was also set as the billing email. Did you do that? Was it automatic? So I went ahead and deleted the billing email and afterwards refreshed the test-drive page and susan.primary@test.org was still in the email-5 slot.

None of my contact's (the ones I can log in as) primary email addresses are showing up in the event reg form email-5 slot on my site (works for membership forms). So, when I noticed this first happening, I was going to try and make a new event and see if the problem went away and that's when I ran into the next problem. I don't know if it's related to this but I've described it on the forum here: http://forum.civicrm.org/index.php/topic,3941.msg17331.html#msg17331
No replies to this post yet. I'm kinda stuck until I can get it resolved.

Chrys

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Unwanted Email Field in Event Registration Form
July 15, 2008, 09:12:08 am
As noted on the other thread - I think your best option is to upgrade to 2.0.5. Otherwise you'll need to start adding debug statements in the code to see what's happening.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Unwanted Email Field in Event Registration Form

This forum was archived on 2017-11-26.