
Hello all, Is it possible, while creating a customer account, to generate the login based on the first name and last name (for example) just entered ? But I still want the field to appear so the agent creating the account can tell the customer what's his login... -> that will help the agent while allowing him to change the login if necessary Another similar need : when an agent chooses a customer while creating a phone-ticket (by clicking on the "customer" link and searching it in the database) it auto-fills the "From" field with the first-name and last-name of the customer previously selected -> that will help the agent but also allow him to change the "From" field if necessary Thanks for your help ! -- Florian

Well, The second need is somewhat easy to do... because you do a page refresh after selecting the user in the database. Go into AdminCustomerUserForm.dtl and look for something like this... # get the selected user back parent.opener.document.compose.ExpandCustomerName.value=2; parent.opener.document.compose.PreSelectedCustomerUser.value=x; This function changes the selected user in the phoneticket window. You can change it to allow a change also in the From field. The first request is solved with a javascript function (on change of first and last name, update login :) Hope it guides you! Duarte -----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Florian Sent: terça-feira, 20 de Setembro de 2005 21:15 To: otrs@otrs.org Subject: [otrs] Auto filled fields Hello all, Is it possible, while creating a customer account, to generate the login based on the first name and last name (for example) just entered ? But I still want the field to appear so the agent creating the account can tell the customer what's his login... -> that will help the agent while allowing him to change the login if necessary Another similar need : when an agent chooses a customer while creating a phone-ticket (by clicking on the "customer" link and searching it in the database) it auto-fills the "From" field with the first-name and last-name of the customer previously selected -> that will help the agent but also allow him to change the "From" field if necessary Thanks for your help ! -- Florian _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/

It's not that easy :( I didn't manage to understand the link between "ExpandCustomerName", "PreselectedCustomerUser", "$Data("CustomerUser") ..... to get the good one (I need the First and Last name of my customer...) I found that I can fill the field "From:" by changing this line in Kernel/Output/HTML/Standard/AgentTicketPhoneNew.dtl : <td width="60%" class="contentvalue"> ... -> if I change $Data{"From"} to $Data{"CustomerUser"} I will have the customer's login in my fied "From" ... but I didn't find how to get the First/Last Name (I tried $Data{"CustomerName"}, $Data{"CustomerUserName"} .... and tried to find where all those names are defined...) Any idea ? For my other request you suggest a javascript function : it should be working but I don't have any idea about coding this :( Thanks for your help ! -- Florian Le mercredi 21 septembre 2005 à 10:00 +0100, Duarte Cordeiro a écrit :
Well,
The second need is somewhat easy to do... because you do a page refresh after selecting the user in the database. Go into AdminCustomerUserForm.dtl and look for something like this...
# get the selected user back parent.opener.document.compose.ExpandCustomerName.value=2; parent.opener.document.compose.PreSelectedCustomerUser.value=x;
This function changes the selected user in the phoneticket window. You can change it to allow a change also in the From field.
The first request is solved with a javascript function (on change of first and last name, update login :)
Hope it guides you!
Duarte
-----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Florian Sent: terça-feira, 20 de Setembro de 2005 21:15 To: otrs@otrs.org Subject: [otrs] Auto filled fields
Hello all,
Is it possible, while creating a customer account, to generate the login based on the first name and last name (for example) just entered ? But I still want the field to appear so the agent creating the account can tell the customer what's his login... -> that will help the agent while allowing him to change the login if necessary
Another similar need : when an agent chooses a customer while creating a phone-ticket (by clicking on the "customer" link and searching it in the database) it auto-fills the "From" field with the first-name and last-name of the customer previously selected -> that will help the agent but also allow him to change the "From" field if necessary
Thanks for your help ! -- Florian
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/
participants (2)
-
Duarte Cordeiro
-
Florian