TOPIC:

SOLVED: BF Registration // Username = E-Mail 3 years 5 months ago #214133

  • Topic Author
  • EDV
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 10
  • Thanks: 0
Hello together,

i use a modified BF Registration Form.
I want that a user signs in only with his e-mail and password.
I don't want to ask the user for an username during registration process.
But that textfield is neccessary for the registration process.
So i want that the content entered in the textfield "E-Mail" will be transfered to the textfield "Username" during filling the form. Later i can try to hide the textfield "Username" or something else to avoid confusing the user.

I think i have to use php to realise it. Sadly i have no idea where to put this code into and how the syntax have to be.

Can anybody help me to solve this issue?
Thanks in advance.

Please Log in or Create an account to join the conversation.

Last edit: Post by EDV.

BF Registration // Username = E-Mail 3 years 5 months ago #214139

  • DarkoCujic's Avatar
  • DarkoCujic
  • Offline
  • Developer
  • Developer
  • Posts: 2154
  • Karma: 67
  • Thanks: 265
Hey,

could you please pack your form using this tutorial , zip it and attach here, so we can take a look :)

Kind regards,
Darko
Satisfied with our support? PayPal tips
===========
Need to renew Pro Support? Buy Here!
===========
Satisfied? Consider a membership!
===========
Like us on Facebook
===========
Support Crosstec and get ALL EXTENSIONS and professional support for just $5. Here!

Please Log in or Create an account to join the conversation.

BF Registration // Username = E-Mail 3 years 5 months ago #214142

  • Topic Author
  • EDV
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 10
  • Thanks: 0
Hi darko,
attached the form.

I think i have to use an action script and add it to the textfield titled "E-Mail".
If i'm right, can you please tell me how the syntax have to be?
The script language seems to be javascript.
Unfortunately I cannot speak this language "yet".

Thanks in advance. :-)
Attachments:

Please Log in or Create an account to join the conversation.

BF Registration // Username = E-Mail 3 years 5 months ago #214151

  • DarkoCujic's Avatar
  • DarkoCujic
  • Offline
  • Developer
  • Developer
  • Posts: 2154
  • Karma: 67
  • Thanks: 265
Hey,

you have an Action script (ff_resetForm) set on your first email element (element name email_repeat) which resets all form element values every time you finish inputing that element, so I'm pretty sure that's not supposed to be there.

One way I can think of doing what you need to do is to turn off required for username element and turn it off:
- select username element > properties, uncheck Required
- now to advanced tab and check Turn off option
- save properties

Now, select email element (Email textfield, not Email repeat) and under Action script in advanced tab, select Custom, select Change action and click Create code framework. Next, paste the following code between case 'change': and break
ff_getElementByName('username').value = ff_getElementByName('email_repeat').value;

Now, you just have to instruct your users that their login username is the same as their email address.

Please try this and get back to us :)

Kind regards,
Darko
Satisfied with our support? PayPal tips
===========
Need to renew Pro Support? Buy Here!
===========
Satisfied? Consider a membership!
===========
Like us on Facebook
===========
Support Crosstec and get ALL EXTENSIONS and professional support for just $5. Here!
The following user(s) said Thank You: EDV

Please Log in or Create an account to join the conversation.

Last edit: Post by DarkoCujic.

BF Registration // Username = E-Mail 3 years 5 months ago #214201

  • Topic Author
  • EDV
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 10
  • Thanks: 0
Thanks for your fast reply.
I just followed your instruction, but the message "Please enter a username" appears.

Again step by step (my backend language is german...just set it up to english, so that it matches):
1. Choosed the element "Username" an disabled "Required" in the properties -> saved (just to be sure :-))
2. Choosed the element "Username" and set "Turn off" under "Advanced" -> saved
3. Choosed the Element "Email" (with titel "Email" and Name "email_repeat") and opened "Advanced", scrolled down to "Actionscript" and choose "Change" and pasted
ff_getElementByName('username').value = ff_getElementByName('email_repeat').value;
in the "Create code framework".

What do you mean with that?

...between case 'change': and break

What exactly have to be pasted in the code framework? Maybe the issue is here?

Thank you very much.

Please Log in or Create an account to join the conversation.

Last edit: Post by EDV.

BF Registration // Username = E-Mail 3 years 5 months ago #214202

  • DarkoCujic's Avatar
  • DarkoCujic
  • Offline
  • Developer
  • Developer
  • Posts: 2154
  • Karma: 67
  • Thanks: 265
Hey,

so, what that action script does is it copies the value from the email field to the username field whenever it changes. So, it has to look like this:
function ff_email_repeat_action(element, action)
{
    switch (action) {
        case 'change':
ff_getElementByName('username').value = ff_getElementByName('email_repeat').value;
            break;
        default:;
    } // switch
} // ff_email_repeat_action

Try this and see if it works, then get back to us :)

Regards,
Darko
Satisfied with our support? PayPal tips
===========
Need to renew Pro Support? Buy Here!
===========
Satisfied? Consider a membership!
===========
Like us on Facebook
===========
Support Crosstec and get ALL EXTENSIONS and professional support for just $5. Here!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Time to create page: 0.038 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!