OTRS mailing lists
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview
newer
OTRS just as long as you do not...

Customer Add: More input type's then text

older
Odd number of elements errors in...

Shawn Holland

5 Dec 2005 5 Dec '05
12:08 a.m.

Hey, I have followed Keith Turner's example of how to modify the customer form to have aditional information. BTW works great! I have copied the CustomerUser object from Defaults.pm into Config.pm I have modified the mapping to include [ 'Misc', 'Misc', 'misc', 1, 1, 'text', '', 0 ], Using phpMyAdmin I have modified the customer_user table SQL query: ALTER TABLE `customer_user` ADD `misc` TEXT CHARACTER SET latin1 COLLATE latin1_swedish_ci; ALTER TABLE `customer_user` ADD FULLTEXT ( `misc` ); Now I don't know much about different data types and I wanted to have a lot of text for this added field so thats why I used type TEXT with FULLTEXT. Correct me if I'm wrong please. I am able to add information into that field through AdminCustomerUser link no problem. But what I'm having a hard time trying to modify is the input type. It seems to default to: <input type="text" name="Misc" value="" size="35" maxlength="60" > I would like to use a text area as this field needs a lot of room. I tried modifying AdminCustomerUserForm.dtl and in the <!-- dtl:block:Item --> section I tried adding my own: !-- dtl:block:Misc --> <tr> <td class="contentkey">$Text{"$Data{"Label"}"} $Text{"$QData{"Key"}"}:</td> <td class="contentvalue">