View Full Version : Text Field with 2 buttons & Broken link in docs

10 Jan 2011, 4:46 AM
Hi All,

I need to create/use an ExtJs field editor that is composed of a read only text field followed by two buttons which allow the user to search for an entry or clear the existing entry. I think can handle the mechanics of writing event handlers etc around these buttons to show a custom built search form but I am struggling to get my head around the best way to develop the main field editor.

After hunting round the documentation for a while it sounds like the "TriggerField" may be a good starting point with the exception that I require two buttons rather than just one. With this in mind I looked into the "TwinTriggerField" class but I am not sure whether this is what I am after. I did try to look at the example given in this classes documentation but the link is broken. Specifically this code/page:


Contains a link to the following example, which no longer appears to exist:


Based upon this I have a couple of questions:

Firstly, am I barking up the right tree with a TwinTriggerField?

If so can someone direct me to working example please?

If not any hints as to where to start would be greatly appreciated.