Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5436 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (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 by Guest
  • 2 weeks later...

This topic is 5436 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.