Jump to content

Add dropdown menu to new user registration


Recommended Posts

Hello,
we need a new dropdown menu in the new user registration.

We have followed this great tutorial -> http://prestacraft.com/adding-new-fields-to-the-registration-form/
but this creates a new text field with the code

<div class="form-group">
    <label for="my_field">{l s='My field'}</label>
    <input id="my_field" class="form-control" name="my_field" type="text" value="{if isset($smarty.post.my_field)}{$smarty.post.my_field}{/if}" />
    <span class="form_info">{l s='My field description'}</span>
</div>
 
Can anyone help us to create a simple dropdown menu with the options yes or no?
 

 

Share this post


Link to post
Share on other sites
1 hour ago, tapanda.gr said:

Drop down where? In navigation hook in front office? Or in account page (also fo) ?

 

This is a new custom field in the new user (costumer) registration, in the front page (authentication.tpl)

This code creates a text field:

<div class="form-group">
    <label for="my_field">{l s='My field'}</label>
    <input id="my_field" class="form-control" name="my_field" type="text" value="{if isset($smarty.post.my_field)}{$smarty.post.my_field}{/if}" />
    <span class="form_info">{l s='My field description'}</span>
</div>
 
But we need a dropdown menu instead.
 
Can you help us?
We just need the dropdown menu code.
 
tks

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More