Bryan VonDeylen Posted December 23, 2009 Posted December 23, 2009 (edited) 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, 2009 by Guest
PotzUK Posted January 4, 2010 Posted January 4, 2010 (edited) Try: Category Edited January 4, 2010 by Guest
Recommended Posts
This topic is 5694 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now