
Thanks Gerald. I really appreciate the help.
I've looked at /opt/otrs/Kernel/Config/Defaults.pm and I see the line you suggested I change:
[ 'UserPhone', 'Phone', 'phone', 1, 1, 'var', '', 0 ],
Am I correct in my understanding that I am supposed to cut a chunk out of the Defaults.pm file and put it into the /opt/otrs/Kernel/Config.pm file which currently does not have any of this info? That is what I'm assuming I need to do but I can't quite figure out what lines I should start and stop the cut and paste.
I notice your snippet starts with
$Self->{CustomerUser} = {
Which is not currently in my Config.pm file so I'm assuming that is the first line I should enter into Config.pm somewhere between "Start your custom configs here!!!" and "End your custom configs here!!!"
Am I on the right track here? I pasted a section that I thought would work from Defaults.pm into Config.pm and then my OTRS web page stopped working. Then I tried to stop and restart Apache and it failed to start. I guess I should revert the change back. Does it matter if I left a backup copy of Config.pm in the same directory? It is named ConfigDOTpm.ORIGINAL and it is owned by root.
I entered the text starting with $Self->{CustomerUser} = {
# ---------------------------------------------------- #
# data inserted by installer #
# ---------------------------------------------------- #
# $DIBI$
$Self->{'DefaultCharset'} = 'utf-8';
$Self->{CustomerUser} = { <--This is the first line I entered
Map => [
# note: Login, Email and CustomerID needed!
# var, frontend, storage, shown (1=always,2=lite), required, storage-type, http-link, readonly, http-link-target
[ 'UserTitle', 'Title', 'title', 1, 0, 'var', '', 0 ],
[ 'UserFirstname', 'Firstname', 'first_name', 1, 1, 'var', '', 0 ],
[ 'UserLastname', 'Lastname', 'last_name', 1, 1, 'var', '', 0 ],
[ 'UserLogin', 'Username', 'login', 1, 1, 'var', '', 0 ],
[ 'UserPassword', 'Password', 'pw', 0, 0, 'var', '', 0 ],
[ 'UserEmail', 'Email', 'email', 1, 1, 'var', '', 0 ],
# [ 'UserEmail', 'Email', 'email', 1, 1, 'var', '$Env{"CGIHandle"}?Action=AgentTicketCompose&ResponseID=1&TicketID=$Data{"TicketID"}&ArticleID=$Data{"ArticleID"}', 0 ],
[ 'UserCustomerID', 'CustomerID', 'customer_id', 0, 1, 'var', '', 0 ],
# [ 'UserCustomerIDs', 'CustomerIDs', 'customer_ids', 1, 0, 'var', '', 0 ],
[ 'UserPhone', 'Phone', 'phone', 1, 1, 'var', '', 0 ], <-- this is where I changed the mandatory flag as you suggested
[ 'UserFax', 'Fax', 'fax', 1, 0, 'var', '', 0 ],
[ 'UserMobile', 'Mobile', 'mobile', 1, 0, 'var', '', 0 ],
[ 'UserStreet', 'Street', 'street', 1, 0, 'var', '', 0 ],
[ 'UserZip', 'Zip', 'zip', 1, 0, 'var', '', 0 ],
[ 'UserCity', 'City', 'city', 1, 0, 'var', '', 0 ],
[ 'UserCountry', 'Country', 'country', 1, 0, 'var', '', 0 ],
[ 'UserComment', 'Comment', 'comments', 1, 0, 'var', '', 0 ],
[ 'ValidID', 'Valid', 'valid_id', 0, 1, 'int', '', 0 ],
], <-- This is the last line I entered
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# #
# End of your own config options!!! #
# #
# ---------------------------------------------------- #
# ---------------------------------------------------- #
Thanks for the help.
Daniel
From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Gerald Young
Sent: Tuesday, January 25, 2011 10:10 AM
To: User questions and discussions about OTRS.
Subject: Re: [otrs] Anyone know how to make a field mandatory?
Set the "required" bit to 1 in the Config.pm CustomerUser Map:
$Self->{CustomerUser} = {
#################################################################################################
#... other content from Defaults.pm was not pasted in this post ... you still need to copy them #
#################################################################################################
Map => [
# note: Login, Email and CustomerID needed!
# var, frontend, storage, shown (1=always,2=lite), required, storage-type, http-link, readonly, http-link-target
#################################################################################################
#... other content from Defaults.pm was not pasted in this post ... you still need to copy them #
#################################################################################################
[ 'UserPhone', 'Phone', 'phone', 1, 1, 'var', '', 0 ],
On Tue, Jan 25, 2011 at 2:44 AM, Navarro, Daniel