I extended the action tracker plugin to allow all select boxes to be able to use the "state shortcut". With this added subroutine, one can create a custom select box with a set number of choices. The select box will be shown properly in all forms, with a fully populated dropdown, instead of just the text (which is the prior behavior). Also, the state shortcut is utilized so that when the user selects another value from the dropdown, it gets updated automatically just like when the user changes the state from open to closed.
I used the parameter that allows the state shortcut to determine whether or not to allow the select box shortcut. This could be extended to have its own parameter, but for my purposes it was sufficient.
The patch is attached here:
- 18 Aug 2009