[Skip to main content](#vessel-content)

#   Placeholder in registration form

##

- **[anilban](/forum/user/35604-anilban "View anilban's Profile")**
- [![anilban's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35604-anilban "View anilban's Profile") Topic Author
- [ Offline](/forum/user/35604-anilban)

Less More

- Posts: 8
- Thank you received: 0
-

11 years 9 months ago [\#187243](#187243) by [anilban](/forum/user/35604-anilban "View anilban's Profile")  *[Placeholder in registration form](/forum/33-customers/874346-placeholder-in-registration-form#187243 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4.7  We are using hikashop user registration form. I want to insert a placeholder in email address. Saying &quot;activation link will be send to your email id&quot; Also keeping an instruction to check spam box in case you don't receive an email. How can i put placeholders")* was created by *[anilban](/forum/user/35604-anilban "View anilban's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.4.7

We are using hikashop user registration form. I want to insert a placeholder in email address. Saying "activation link will be send to your email id" Also keeping an instruction to check spam box in case you don't receive an email.
How can i put placeholders

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzQzNDYtcGxhY2Vob2xkZXItaW4tcmVnaXN0cmF0aW9uLWZvcm0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile")
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 747
-
- [](http://www.inphase.one)
-

11 years 9 months ago [\#187247](#187247) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[Placeholder in registration form](/forum/33-customers/874346-placeholder-in-registration-form#187247 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4.7  We are using hikashop user registration form. I want to insert a placeholder in email address. Saying &quot;activation link will be send to your email id&quot; Also keeping an instruction to check spam box in case you don't receive an email. How can i put placeholders")*

You'll need to edit the view "user / registration" or "user / registration_bootstrap" (depending on your system configuration for "Use bootstrap design") for your frontend template via the menu Display -&gt; Views, and add the placeholder attribute to the input fields.

However, please allow me to wonder: it's quite a long placeholder text for a small form field. Perhaps you want to insert another tr/td (or div, respectively) for this. Or, isn't there a Joomla message coming up upon click on the "Register" button, already telling about the activation link mail? This message can be edited via language override, so you can add the spam box hint to it as well.
Anyway, your decision what to do how, of course. ![;)](/media/kunena/emoticons/11.png ";)")

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzQzNDYtcGxhY2Vob2xkZXItaW4tcmVnaXN0cmF0aW9uLWZvcm0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[anilban](/forum/user/35604-anilban "View anilban's Profile")**
- [![anilban's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35604-anilban "View anilban's Profile") Topic Author
- [ Offline](/forum/user/35604-anilban)

Less More

- Posts: 8
- Thank you received: 0
-

11 years 9 months ago -  11 years 9 months ago [\#187271](#187271) by [anilban](/forum/user/35604-anilban "View anilban's Profile")  Replied by *[anilban](/forum/user/35604-anilban "View anilban's Profile")* on topic *[Placeholder in registration form](/forum/33-customers/874346-placeholder-in-registration-form#187271 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4.7  We are using hikashop user registration form. I want to insert a placeholder in email address. Saying &quot;activation link will be send to your email id&quot; Also keeping an instruction to check spam box in case you don't receive an email. How can i put placeholders")*

I get cases where people register with wrong email id and then register with correct id. Also in case email goes to through spam box then register twice, thrice.
Hence thought about placing a place holder to avoid these things. Is there a better way of doing this?
[ prntscr.com/5ub0dr](http://prntscr.com/5ub0dr)

Also how do i remove E-mail confirmation and Verify Password.
I have made changes in user / registration_bootstrap.php

Code as below : Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.3.0 * @author hikashop.com * @copyright (C) 2010-2014 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;fieldset class="form-horizontal"&gt; &lt;?php if($this-&gt;display_method==1){ $this-&gt;simplified_registration=explode(',',$this-&gt;simplified_registration); if(in_array('2',$this-&gt;simplified_registration)){ $registration=2; } if(in_array('0',$this-&gt;simplified_registration)){ $registration=0; } if(in_array('1',$this-&gt;simplified_registration)){ $registration=1; } if(in_array('3',$this-&gt;simplified_registration)){ $registration=3; } $this-&gt;simplified_registration = $registration; } if(!$this-&gt;simplified_registration){ ?&gt; &lt;div class="control-group hikashop_registration_name_line" id="hikashop_registration_name_line"&gt; &lt;div class="control-label"&gt; &lt;label id="namemsg" for="register_name" class="required" title=""&gt;&lt;?php echo JText::_( 'HIKA_USER_NAME' ); ?&gt;&lt;/label&gt; &lt;/div&gt; &lt;div class="controls"&gt; &lt;input type="text" name="data[register][name]" id="register_name" value="&lt;?php echo $this-&gt;escape($this-&gt;mainUser-&gt;get( 'name' ));?&gt;" class="required" size="30" maxlength="50" &lt;?php if (!empty($this-&gt;registration_page)) echo ' aria-required="true" required="required"'; ?&gt;&gt; * &lt;/div&gt; &lt;/div&gt; &lt;div class="control-group hikashop_registration_username_line" id="hikashop_registration_username_line"&gt; &lt;div class="control-label"&gt; &lt;label id="usernamemsg" for="register_username" class="required" title=""&gt;&lt;?php echo JText::_( 'HIKA_USERNAME' ); ?&gt;&lt;/label&gt; &lt;/div&gt; &lt;div class="controls"&gt; &lt;input type="text" name="data[register][username]" id="register_username" value="&lt;?php echo $this-&gt;escape($this-&gt;mainUser-&gt;get( 'username' ));?&gt;" class="required validate-username" maxlength="25" size="30" &lt;?php if (!empty($this-&gt;registration_page)) echo ' aria-required="true" required="required"'; ?&gt;&gt; * &lt;/div&gt; &lt;/div&gt; &lt;?php }?&gt; &lt;div class="control-group hikashop_registration_email_line"&gt; &lt;div class="control-label"&gt; &lt;label id="emailmsg" for="register_email" class="required" title=""&gt;&lt;?php echo JText::_( 'HIKA_EMAIL' ); ?&gt;&lt;/label&gt; &lt;/div&gt; &lt;div class="controls"&gt; &lt;input type="text" name="data[register][email]" placeholder="activation link will be send" id="register_email" value="&lt;?php echo $this-&gt;escape($this-&gt;mainUser-&gt;get( 'email' ));?&gt;" class="required validate-email" maxlength="100" size="30"&lt;?php if (!empty($this-&gt;registration_page)) echo ' aria-required="true" required="required"'; ?&gt;&gt; * &lt;/div&gt; &lt;/div&gt; &lt;?php if($this-&gt;config-&gt;get('show_email_confirmation_field',0)){ ?&gt; &lt;div class="control-group hikashop_registration_email_confirm_line"&gt; &lt;div class="control-label"&gt; &lt;label id="email_confirm_msg" for="register_email_confirm" class="required" title=""&gt;&lt;?php echo JText::_( 'HIKA_EMAIL_CONFIRM' ); ?&gt;&lt;/label&gt; &lt;/div&gt; &lt;div class="controls"&gt; &lt;input type="text" name="data[register][email_confirm]" id="register_email_confirm" value="&lt;?php echo $this-&gt;escape($this-&gt;mainUser-&gt;get( 'email' ));?&gt;" class="required validate-email" maxlength="100" size="30" &lt;?php if (!empty($this-&gt;registration_page)) echo ' aria-required="true" required="required"'; ?&gt; onchange="if(this.value!=document.getElementById('register_email').value){alert('&lt;?php echo JText::_('THE_CONFIRMATION_EMAIL_DIFFERS_FROM_THE_EMAIL_YOUR_ENTERED',true); ?&gt;'); this.value = '';}"&gt; * &lt;/div&gt; &lt;/div&gt; &lt;?php } if(!$this-&gt;simplified_registration &#124;&#124; $this-&gt;simplified_registration == 3){ ?&gt; &lt;div class="control-group hikashop_registration_password_line" id="hikashop_registration_password_line"&gt; &lt;div class="control-label"&gt; &lt;label id="pwmsg" for="register_password" class="required" title=""&gt;&lt;?php echo JText::_( 'HIKA_PASSWORD' ); ?&gt;&lt;/label&gt; &lt;/div&gt; &lt;div class="controls"&gt; &lt;input type="password" name="data[register][password]" id="register_password" value="" class="required validate-password" size="30" &lt;?php if (!empty($this-&gt;registration_page)) echo ' aria-required="true" required="required"'; ?&gt;&gt; * &lt;/div&gt; &lt;/div&gt; &lt;div class="control-group hikashop_registration_password2_line" id="hikashop_registration_password2_line"&gt; &lt;div class="control-label"&gt; &lt;label id="pw2msg" for="register_password2" class="required" title=""&gt;&lt;?php echo JText::_( 'HIKA_VERIFY_PASSWORD' ); ?&gt;&lt;/label&gt; &lt;/div&gt; &lt;div class="controls"&gt; &lt;input type="password" name="data[register][password2]" id="register_password2" value="" class="required validate-password" size="30" &lt;?php if (!empty($this-&gt;registration_page)) echo ' aria-required="true" required="required"'; ?&gt;&gt; * &lt;/div&gt; &lt;/div&gt; &lt;?php } $this-&gt;setLayout('custom_fields_bootstrap'); $this-&gt;type = 'user'; echo $this-&gt;loadTemplate(); if($this-&gt;config-&gt;get('affiliate_registration',0)){ ?&gt; &lt;div class="control-group hikashop_registration_password2_line"&gt; &lt;div class="controls"&gt; &lt;?php $affiliate_terms = $this-&gt;config-&gt;get('affiliate_terms',0); if(!empty($affiliate_terms)){ ?&gt; &lt;input class="hikashop_affiliate_checkbox" id="hikashop_affiliate_checkbox" type="checkbox" name="hikashop_affiliate_checkbox" value="1" &lt;?php echo $this-&gt;affiliate_checked; ?&gt; /&gt; &lt;span class="hikashop_affiliate_terms_span_link" id="hikashop_affiliate_terms_span_link"&gt; &lt;a class="hikashop_affiliate_terms_link" id="hikashop_affiliate_terms_link" target="_blank" href="&lt;?php echo JRoute::_('index.php?option=com_content&amp;view=article&amp;id='.$affiliate_terms); ?&gt;"&gt;&lt;?php echo JText::_('BECOME_A_PARTNER'); ?&gt;&lt;/a&gt; &lt;/span&gt; &lt;?php } else { ?&gt; &lt;label class="checkbox"&gt; &lt;input class="hikashop_affiliate_checkbox" id="hikashop_affiliate_checkbox" type="checkbox" name="hikashop_affiliate_checkbox" value="1" &lt;?php echo $this-&gt;affiliate_checked; ?&gt; /&gt; &lt;?php echo JText::_('BECOME_A_PARTNER');?&gt; &lt;/label&gt; &lt;?php } ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php } if($this-&gt;config-&gt;get('address_on_registration',1)){ ?&gt; &lt;div class=""&gt;&lt;legend&gt;&lt;?php echo JText::_( 'ADDRESS_INFORMATION' ); ?&gt;&lt;/legend&gt;&lt;/div&gt; &lt;?php $this-&gt;type = 'address'; echo $this-&gt;loadTemplate(); } ?&gt; &lt;div class="control-group hikashop_registration_required_info_line"&gt; &lt;div class="controls"&gt;&lt;?php echo JText::_( 'HIKA_REGISTER_REQUIRED' ); ?&gt;&lt;/div&gt; &lt;/div&gt; &lt;input type="hidden" name="data[register][id]" value="&lt;?php echo (int)$this-&gt;mainUser-&gt;get( 'id' );?&gt;" /&gt; &lt;input type="hidden" name="data[register][gid]" value="&lt;?php echo (int)$this-&gt;mainUser-&gt;get( 'gid' );?&gt;" /&gt; &lt;?php if(empty($this-&gt;form_name)){ $this-&gt;form_name = 'hikashop_checkout_form'; } ?&gt; &lt;div class="control-group"&gt; &lt;div class="controls"&gt; &lt;?php $registerButtonName=JText::_('HIKA_REGISTER'); if($this-&gt;simplified_registration==2){ $registerButtonName=JText::_('HIKA_NEXT'); } echo $this-&gt;cartClass-&gt;displayButton($registerButtonName,'register',$this-&gt;params,'',' hikashopSubmitForm(\''.$this-&gt;form_name.'\'); return false;','id="hikashop_register_form_button"', 0, 1, 'btn btn-primary'); //hikashopSubmitForm(\''.$this-&gt;form_name.'\'); $button = $this-&gt;config-&gt;get('button_style','normal'); if ($button=='css') echo '&lt;input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"/&gt;&lt;/input&gt;'; ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;/fieldset&gt;

Last edit: 11 years 9 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile"). Reason: Use of [code]...[/code] tags

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzQzNDYtcGxhY2Vob2xkZXItaW4tcmVnaXN0cmF0aW9uLWZvcm0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile")
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 747
-
- [](http://www.inphase.one)
-

11 years 9 months ago [\#187294](#187294) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[Placeholder in registration form](/forum/33-customers/874346-placeholder-in-registration-form#187294 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4.7  We are using hikashop user registration form. I want to insert a placeholder in email address. Saying &quot;activation link will be send to your email id&quot; Also keeping an instruction to check spam box in case you don't receive an email. How can i put placeholders")*

> anilban wrote: Is there a better way of doing this?

What's "better" or "worse" is up to you to decide, of course.
I had already mentioned two other ways, but now, since you shortened the placeholder text, you seem to have what you originally wanted. ![:)](/media/kunena/emoticons/8.png ":)")

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzQzNDYtcGxhY2Vob2xkZXItaW4tcmVnaXN0cmF0aW9uLWZvcm0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 9 months ago [\#187298](#187298) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Placeholder in registration form](/forum/33-customers/874346-placeholder-in-registration-form#187298 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4.7  We are using hikashop user registration form. I want to insert a placeholder in email address. Saying &quot;activation link will be send to your email id&quot; Also keeping an instruction to check spam box in case you don't receive an email. How can i put placeholders")*

Hi,

> Also how do i remove E-mail confirmation and Verify Password.

The answer is directly in the code you posted : Code:

if($this-&gt;config-&gt;get('show_email_confirmation_field',0))

There is an option for that in the HikaShop configuration.

About the password confirmation, even if you remove it from the view, the controller need it ; so it won't work unless you modify also the controller.
The modification of the core files is not something recommended

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzQzNDYtcGxhY2Vob2xkZXItaW4tcmVnaXN0cmF0aW9uLWZvcm0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.240 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
