use if($form_id == “view id” && $form[‘#id’]==‘current view display’ ) and use options array as array(key => value) format… – Abin Aug 6 at 4:37
Thanks Abin, but not quite there yet! what should I put [EXACTLY] into array(key => value) , I tried many combinations and I can’t get it working, like array(1=>1) , array(“1”=>1) , array(“1”=>$1) … I have no idea about PHP…drop down is for ages 18-99 – Bruno Vincent 2 days ago [/quote]
Not sure if this is the bad way to ask on a forum…but I just can’t get any help on Drupal forums…so I thought I would give this one a shot.
I’ve never coded for Drupal but in this particular case I guess you should provide options list for your select.
Keys of this array will be used as value attribute for each option and values of array will be used as option text.
If you want it to display ages, maybe it should looks like