How to add fields to the Customer registration form.

Moderator: crythias

Post Reply
carlosmagno
OTRS newbie
Posts: 10
Joined: 06 Sep 2016, 15:57
OTRS Version?: 5.0.23
Real Name: Carlos Pernia

How to add fields to the Customer registration form.

Post by carlosmagno » 28 Nov 2017, 20:27

Hi!!

I need to place a field called country to the form that the Customers fills when he registers

can this be done?

I have OTRS 5s.

Thank you.

crythias
Moderator
Posts: 10108
Joined: 04 May 2010, 18:38
OTRS Version?: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to add fields to the Customer registration form.

Post by crythias » 22 Dec 2017, 22:18

Edit Kernel/Output/HTML/Templates/Standard/CustomerLogin.tt
Add this around / before line 136/submit

Code: Select all

<div class="NewLine">
                        <label class="Mandatory" for="Country"><span class="Marker">*</span> [% Translate("Country") | html %]</label>
                        <input title="[% Translate("Your Country") | html %]" name="Country" type="text" id="Country" maxlength="100" value="[% Data.UserCountry | html %]" class="W50pc Validate_Required"/>
                        <div id="LastNameError" class="TooltipErrorMessage"><p>[% Translate("This field is required.") | html %]</p></div>
                    </div>
OTRS 5.0.x (private/testing/public) on Linux with MySQL database. Also on github.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask

Post Reply