make freetext box behave like the "From" box
Moderator: crythias
-
- Znuny newbie
- Posts: 40
- Joined: 12 Apr 2010, 22:50
- Znuny Version: 2.4.7
- Location: Medellin, Colombia
- Contact:
make freetext box behave like the "From" box
Hello there,
Our customers love the way the "From" textbox works, like a browser address bar, showing you all options that matches what you're typing, nice!
It's so nice that they'd love to have the same behavior on a freetext field. Has anyone accomplished this? Is it possible?
Thanks for your answers,
Our customers love the way the "From" textbox works, like a browser address bar, showing you all options that matches what you're typing, nice!
It's so nice that they'd love to have the same behavior on a freetext field. Has anyone accomplished this? Is it possible?
Thanks for your answers,
Leonardo Certuche
www.itconsultores.com.co
www.itconsultores.com.co
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: make freetext box behave like the "From" box
I suppose it might be possible to make any field do what you request. It seems a bit counter-intuitive to do it in a Freetext box (barring the auto-complete like a cell phone keyboard T9 input or Microsoft Word type thing.) If you have an array of pre-selected entries, and they aren't a huge lot, a drop down box seems more appropriate. Care to elaborate on your request?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 40
- Joined: 12 Apr 2010, 22:50
- Znuny Version: 2.4.7
- Location: Medellin, Colombia
- Contact:
Re: make freetext box behave like the "From" box
Thanks for your answer crythias,
It's just our customer's request. They'll have a freetext fields with many entries, so much they'd prefer an auto-complete feature instead of a drop-down-scroll-&-search one
Is it possible?
It's just our customer's request. They'll have a freetext fields with many entries, so much they'd prefer an auto-complete feature instead of a drop-down-scroll-&-search one
Is it possible?
Leonardo Certuche
www.itconsultores.com.co
www.itconsultores.com.co
Re: make freetext box behave like the "From" box
Any news on that? I've tried to implement this via JQuery's autocomplete function, but the OTRS template seems to override all autocomplete-enabled elements on page and configures them to retrieve customer information (exactly what it does in "From:"). Am I correct? There's a clean (or not so much) solution for that?
Thanks!
Thanks!
-
- Znuny advanced
- Posts: 121
- Joined: 30 Aug 2011, 10:48
- Znuny Version: 3.3.8 && 4.0.9
- Real Name: Artjoms Petrovs
- Location: Latvia
Re: make freetext box behave like the "From" box
Will try to revoke this thread once again!
I tried to implement jQuery Autocomplete functionality as well, but while it is working in pure html file, when it is moved to .dtl file it just do nothing!
Maybe someone managed to implement this functionality or at least have any hints where to dig
As I see OTRS already includes jQuery.js int the loader, but even if I include javascript code into the dtl file it still doesn' t do anything. Those dtl files just confuses me 
I tried to implement jQuery Autocomplete functionality as well, but while it is working in pure html file, when it is moved to .dtl file it just do nothing!
Maybe someone managed to implement this functionality or at least have any hints where to dig


Ar cieņu / Kind regards,
----------------------------------------
Artjoms Petrovs
Sistēmu analītiķis/Programmētājs /
Systems Analyst/Programmer
----------------------------------------
Artjoms Petrovs
Sistēmu analītiķis/Programmētājs /
Systems Analyst/Programmer
-
- Znuny newbie
- Posts: 6
- Joined: 09 Nov 2011, 21:03
- Znuny Version: 3.0.11
- Real Name: Andres Ramirez
- Company: New York Medical College
Re: make freetext box behave like the "From" box
Has anyone had any luck since the last posting here? I've been trying to get this to work (I have an array of 203 departments) and having this as a drop down just wouldn't work.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: make freetext box behave like the "From" box
A suggestion based upon the jQuery entry:
1) render your site
2) view source and grab the HTML for the field you want to fill
3) implement jQuery lookup against that field.
1) render your site
2) view source and grab the HTML for the field you want to fill
3) implement jQuery lookup against that field.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 6
- Joined: 09 Nov 2011, 21:03
- Znuny Version: 3.0.11
- Real Name: Andres Ramirez
- Company: New York Medical College
Re: make freetext box behave like the "From" box
Thanks for replying. Which dtl would I implement jQuery on if I want this functionality on the new phone ticket window? Would the code go on AgentTicketCompose?
-
- Znuny advanced
- Posts: 121
- Joined: 30 Aug 2011, 10:48
- Znuny Version: 3.3.8 && 4.0.9
- Real Name: Artjoms Petrovs
- Location: Latvia
Re: make freetext box behave like the "From" box
Hello. Yep, successfully implemented the jQuery autocomplete on default fields, dynamic fields and HTML-created fields.
It is not so difficult:
1) Load jquery-UI with a loader to all required pages (check in SysConfig if it is loaded in Agent interface)
2) Edit jQeuery css file to match your needs (maxheight, maxwidth, maxelementcount etc)
3) Set up an autocomplete over the needed dropdown box (set it as a source for autocomplete box)
otrsfan, in your case it will go onto the AgentTicketPhone.dtl
And set in on the DynamicField_XXXXXXX dropdown...
Uhmmm.. one thing - set an existence check for the field (if field exists - then set up the autocomplete else do nothing ), or if you disable the DynField in sysconfig, the whole JavaScript in the page will crash
Cheers!
It is not so difficult:
1) Load jquery-UI with a loader to all required pages (check in SysConfig if it is loaded in Agent interface)
2) Edit jQeuery css file to match your needs (maxheight, maxwidth, maxelementcount etc)
3) Set up an autocomplete over the needed dropdown box (set it as a source for autocomplete box)
otrsfan, in your case it will go onto the AgentTicketPhone.dtl

Uhmmm.. one thing - set an existence check for the field (if field exists - then set up the autocomplete else do nothing ), or if you disable the DynField in sysconfig, the whole JavaScript in the page will crash

Cheers!
Ar cieņu / Kind regards,
----------------------------------------
Artjoms Petrovs
Sistēmu analītiķis/Programmētājs /
Systems Analyst/Programmer
----------------------------------------
Artjoms Petrovs
Sistēmu analītiķis/Programmētājs /
Systems Analyst/Programmer