How to add fields to the Customer registration form.

Moderator: crythias

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

How to add fields to the Customer registration form.

Post by carlosmagno »

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: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

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

Post by crythias »

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 6.0.x (private/testing/public) on Linux with MySQL database.
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