Is it possible to add a PHP snippet into a lookup field? I have a simple list view page that I would like to add a field to allow the user to determine the sort order of their records. The code would be a very simple for loop that counts the number of records in the table (based on a couple criteria) and creates the content of the drop down to be basically a list of numbers from one to the total number of records in the table. This would really help so I could force the use into picking a value from the drop down instead of entering it themselves.
I know this could be done with a "list of values" from one to xx in the lookup wizard of the visual editor, but I want to be able to adjust the max number in the list based off of how many records that user has and not to 'hard-code' the max number.
Any help would be appreciated. Thanks.
Jeff