Forums

Field mixup and duplicate mail

ajshepherd 16 Dec, 2010
Hi,

We're testing out a form using Chronoforms so that when a user registers on our website they go in our CRM (via the CURL) plugin as well as the Joomla database using the Joomla Registration plugin

There are a few snags.

For some reason, all browsers think the 'Telephone' field (called 'telephone') is a user name field. So when you log in, your browser says 'Do you want to save the password for '(the telephone number)'.
I cannot figure out why this is happening. The user name field is called 'username' in the form, and the telephone field is called 'telephone'. Any ideas?

Secondly, we're sending out a custom email after registering. But it sends out two emails. We're using 'custom form email 1' to go to users, and 'custom form email 2' to go to admins. Admins only get one mail, but users get two copies of 'custom form email 1'. Why would this happen?

We're using Chronoforms 3.1 RC5.5, on Joomla 1.5.20
GreyHead 16 Dec, 2010
Hi ajshepherd,

Sorry, no immediate idea about the username and telephone fields :-(
Please post a link to the form so we can take a quick look.

You may need to disable the form in ChronoForms to stop it being sent twice. The Registration Plug-in uses it's own mailng code and just picks up the settings from the Email Setup & template. Set the Email Setup | Properties box to 'Enabled: No'

Bob
ajshepherd 21 Dec, 2010
Hi,

I disabled both emails in the form 'Setup Emails' box, but users are still getting two emails.

Basically email 1 goes to the user, email 2 goes to the administrator. Email 1 is going out twice, but email 2 is only going out once.

As far as the telephone number being taken for the username, the form is on our internal test site a the moment and I can't really make that available, but here's the code from the 'Form Code' box if that helps?

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">* First Name</label>
    <input class="cf_inputbox required" maxlength="150" size="40" title="" id="text_1" name="firstname" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">* Last Name</label>
    <input class="cf_inputbox required" maxlength="150" size="40" title="" id="text_3" name="lastname" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">* Login Name</label>
    <input class="cf_inputbox required validate-alphanum" maxlength="150" size="40" title="" id="text_9" name="username" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">* Email</label>
    <input class="cf_inputbox required validate-email" maxlength="150" size="40" title="" id="text_2" name="email" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Company</label>
    <input class="cf_inputbox" maxlength="150" size="40" title="" id="text_3" name="company" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Telephone</label>
    <input class="cf_inputbox validate-alphanum" maxlength="150" size="40" title="" id="text_4" name="telephone" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_password">
    <label class="cf_label" style="width: 150px;">* Password</label>
    <input class="cf_inputbox required" maxlength="150" size="40" title="" id="text_9" name="password" type="password" />
    
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_password">
    <label class="cf_label" style="width: 150px;">* Confirm Password</label>
    <input class="cf_inputbox required" maxlength="150" size="40" title="" id="text_10" name="password2" type="password" />
    
  </div>
  <div class="cfclear"> </div>
</div>

<input value="" id="hidden_10" name="fullname" type="hidden" />

<div class="form_item">
  <div class="form_element cf_captcha">
    <label class="cf_label" style="width: 150px;">* Verification</label>
    <span>{imageverification}</span> 
    
    </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_text"> <span class="cf_text">NB: All fields with '*' are mandatory. Login Name, Password and Verification fields are case sensitive!</span> </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_button">
    <input value="Submit" name="button_7" type="submit" />
  </div>
  <div class="cfclear"> </div>
</div>
GreyHead 21 Dec, 2010
Hi ajshepherd ,

The Form HTML looks fine - nothing preloads when I test it here. I suspect that this may be browser pre-loading?? Is that possible?*

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look at the email settings.

Bob

Later: I just noticed that FireFox is offering to remember the password for 'telephone' so I think this may be because the 'telephone' input is immediately before the 'password' input.
ajshepherd 21 Dec, 2010
Thanks, the telephone being above the password hadn't occurred to me, I've shuffled the fields around and that's now fine.

That just leaves the duplicate emails. I've attached a zip as requested.
GreyHead 21 Dec, 2010
Hi ajshepherd,

Please turn off the Email Verification plug-in. The Verification is done by the Joomla! Registration process so you don't need this as well.

Bob
ajshepherd 22 Dec, 2010
OK, I've done that.

We're only getting the one email now, which is that problem fixed.

The only really big problem now is that we're not getting error messages.

e.g. if a registration uses a login/user name which already exists in the Joomla database, or the passwords don't match, or the validation code is wrong, it just dumps you back to the form without any indication of what went wrong.

I've tried various settings. Sometimes if you then refresh the page it'll show you the error message. Or sometimes I can go back to the page - even on a different browser - and see the error message from my previous login. One time it retained all my form entries (except the validation code), and even another person looking at the form from a different computer could see what I had previously entered.
GreyHead 22 Dec, 2010
Hi ajshepherd ,

Do you have "Use Joomla message display" set to 'Yes'? Then most likely your template doesn't support Joomla! System Messages. If this is the problem then you need to add
<jdoc:include type="message" />


Bob
ajshepherd 22 Dec, 2010
Yes, we do have that set.

The interesting thing is that on a different version of our site the forms worked OK and gave us proper error reporting. So my guess is that there's something else on the main test site - some other joomla module - that's interfering with things.
bonbin 24 Feb, 2011
hi,

im facing the same issue with ajshepherd, which is user got 2 email when they are registering
i did read this thread and didnt find a solution for my problem, since my email verification on chronoform was turned off.

looking for any help,

thx and best regard
GreyHead 24 Feb, 2011
Hi bonbin,

What email verification do you have turned off?

What are your email settings on the Joomla! Registration plug-in?

Bob
bonbin 24 Feb, 2011
hi GreyHead,

thx for your fast respond
and sorry i forgot to include the attachment on my last post
here is the backup file, with this file i think it would be easier for you to find out the problem

thx

[attachment=0]registration.zip[/attachment]
GreyHead 24 Feb, 2011
Hi bonbin,

Thanks for the backup - that looks OK but unfortunately a form backup doesn't include the plug-in settings.

Bob
bonbin 15 Mar, 2011
hi greyhead,

im figuring out the problem comes from double activation for sending the result email
one from the Joomla registration, and the another one from the form option

thx for your help btw🙂
This topic is locked and no more replies can be posted.