Let Customer User choose customer

Moderator: crythias

Post Reply
Jury
Znuny newbie
Posts: 7
Joined: 27 Jun 2016, 16:15
Znuny Version: 5.0.10

Let Customer User choose customer

Post by Jury »

Hello Everyone

My problem is a simple one but i just can't figure it out how to solve it.
In our company we have the customer management enabled so we can use the company tickets function.

The Users creates his own account via the customer Interface Signup (customer.pl#Signup)
The User have to fill out this form to create his OTRS Account.

On standard this form has the fields fistname, lastname and e-mail adress.
Is there a way to add more fields?
Now if a new user has been created his customerID is just his e-mail adress and i have to change the customerID to the right company manually... It would be very handy if the user could choose his customerID (company) himself.

Thanks for the reply
Kind regards
You do not have the required permissions to view the files attached to this post.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Let Customer User choose customer

Post by reneeb »

You need to change the login template: https://github.com/OTRS/otrs/blob/rel-5 ... in.tt#L109

Add

Code: Select all

                    <div class="NewLine">
                        <label class="Mandatory" for="CustomerID"><span class="Marker">*</span> [% Translate("CustomerID") | html %]</label>
                        <input title="" name="Email" type="text" id="CustomerID" maxlength="150" value="[% Data.UserCustomerID | html %]" class="W100pc Validate_Required"/>
                        <div id="CustomerIDError" class="TooltipErrorMessage"><p>[% Translate("This field is required.") | html %]</p></div>
</div>
(untested)
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Post Reply