Intechnic
Users Developers
Home / Forums / In-Portal Modules / In-Commerce – Shopping Cart / Set filad as Mandatory / Topic Posts

In-Portal Forum

This is a place for users of In-Portal to ask questions, discuss various topics, and interact with other members of the In-Portal Community. Please report bugs through the Bugs Team (not the Forum). If you are interested in contributing or joining one of the many Teams for In-Portal, please check out the Contribute section of the website.
 

In-Portal Forum

Set filad as Mandatory (4)


Posted: 01/18/2010 5:57:08 AM

Reply Quoted  


Hi,
I want to set phone field (in registration form) as mandatory. How can I ?

Max

Posted: 01/18/2010 10:36:18 AM

Reply Quoted  


bloo wrote:01/18/2010 5:57:08 AM
Hi,
I want to set phone field (in registration form) as mandatory. How can I ?

Max


Hello Max,


I would need to additional information from you before I can fully answer your question:


1. What's your In-Portal and In-Commerce versions?

2. Just to make sure are you talking about Phone field during User Registration or Checkout? These are two different ones.


Thanks.

Posted: 01/19/2010 3:48:44 AM

Reply Quoted  


Hi,
I'm using 4.1.0 version.
I'm talking about Registration form, not checkout.

Thanks

Posted: 01/20/2010 4:23:34 PM

Reply Quoted  


Hello Max,


Sorry for delay with getting back to you!

I support you are using our "Onlinestore" theme (green):

You should open: platform/blocks/login/form_register.tpl and find:


<tr>
  <
td>
    <
strong><inp2:m_phrase label="lu_phone"/>:</strong>
  <
/td>
  <
td>
    <
input type="text" name="<inp2:u_InputName field="Phone"/>" value="<inp2:u_Field name="Phone"/>" style="width: 150px;" />
  <
/td>
  <
td class="error"><inp2:u_Error field="Phone"/></td>
<
/tr>



and add this right before:


<input type="hidden" name="<inp2:u_FieldModifier field='Phone' type='required' value='1'/>" value="1"/>



There is a chance that it might not work on 4.1.0 since it's quite old version, but let's give it try since we also have PHP way of changing this.

Let us know the outcome.


Cheers!