Closed (fixed)
Project:
FileField
Version:
6.x-3.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2009 at 02:21 UTC
Updated:
24 Nov 2009 at 03:28 UTC
A client requires the filefield description field to be a select box, with a fixed set of file descriptions.
Any pointers on the best approach to theming / form_altering the textfield type to select?
I can take care of the options population myself.
thanks in advance.
DT
Comments
Comment #1
quicksketchI'd suggest looking at FileField Sources or ImageField Extended to see how they alter FileFields through hook_elements().
Comment #2
quicksketchMarking fixed since this was open for so long. It will close automatically in 2 weeks.
Comment #4
davidwhthomas commentedThanks quicksketch!
After trying various approaches with PHP, I ended up implementing this using client side javascript / ajax to replace the textfield with a select box as I know the clients all have js enabled.
Next time round, I'll have a peek into hook_elements.
DT