December 23, 200916 yr I have used PHP Assistant to create a generic Web Site. Home Page, Find, Result List, and Find All. I would now like to modify the Find page so that one of the fields has a pre-determined 'Find'. On that page, I have 5 fields: Category, Item, Notes, Location, and Tag. I would like the Category to ALWAYS be "Assistive Tech" while allowing them to search for anything in the other fields. The reason being, this database contains a lot of stuff, but we only want to display the records in the Assistive Tech category. How would the html code be modified so that they do NOT have a choice is changing the Category field (I would like it if the Category field did not even display, but just have 'Assistive Tech' as the choice when searching)? The code currently looks like this: Category <?php $fieldValue = $record->getField('Category', 0) ; ?> "<?php echo getFieldFormName('Category', 0, $record, true, 'POPUPMENU', 'text');?>"> <?php echo getMenu($layout->getValueListTwoFields('Category List', $record->getRecordId()), $fieldValue, 'Category', 'text', $submitDateOrder);?> Edited December 23, 200916 yr by Guest
Create an account or sign in to comment