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
Mysql error when trying to attach...

Re: [otrs] Customer Add: More input type's then text

older
Which table contains...

Shawn Holland

6 Dec 2005 6 Dec '05
6:33 p.m.

No takers? No one has been able (or tried) to modify the dtl's to allow somethign other then an input type of text (maxlen 60, size 35) for the customer user input screen? On Sunday 04 December 2005 8:08 pm, Shawn Holland wrote:

...

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">