Could you allow the use of a nodereference field for select options? Or maybe the result of a view? Even allowing php in the options box would work -- that way, any type of field or select statement could populate options. A "php" checkbox maybe so you'd know to evaluate it to get the option list?

Comments

aaron1234nz’s picture

I like the option of the php check box to evaluate php code. I'll see what I can craft up. It should not be too hard to implement.

aaron1234nz’s picture

This feature is now implemented in the latest dev. You can add php code in the options box now. This code should return an array of values. Note there is an extra permission you must set before you can add php code.

can you give it a test and let me know how you get on.

aaron1234nz’s picture

Status: Active » Needs review

@lutegrass

have you tested this feature?

chrisschaub’s picture

Hi, I hope to this weekend. Sorry, got swamped. I'll report back in a bit. Thanks.

chrisschaub’s picture

Ok, sorry for taking soooo long to test this out. I see the option, but I am unable to save them. I'm using the rootcandy theme. When I click the save button nothing happens. Must be some sort of javascript conflict. I'll try to test with garland. Also, if you define your field with columns, is it possible to add more rows on the fly? Or predefine the number of rows in the table? Thanks.

intrafusion’s picture

Status: Needs review » Closed (won't fix)