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

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

Recommended Posts

  • Newbies
Posted

I created a search form using the PHP Site Assistant and would like to limit the results to those records that have a "yes" value in the "Publish to Web" field. I tried adding this at the top of the source code between the php open and close tags:

$find =& $fm->newFindCommand('Web');

$find->addFindCriterion('Publish to Web', 'yes');

$result = $find->execute();

That didn't work; the find commands were ignored.

I then tried adding <input type="hidden" name="<?php $fieldName = 'Publish to Web';?>" value="yes"> to the top of the form, which also didn't work.

I know pretty much nothing about PHP (hence using the Site Assistant to generate the site). But there must be a simple way for omitting these records. Any advice?

Site can be viewed here: http://lrc-fms.iss.lsa.umich.edu/Catalogv3/findrecords.php?-link=Search%20the%20catalog

Thanks.

Posted

I've never personally used the PHP Site Assistant, but I have used the API.

You should be able to hardcode that find criteria into the find command that the site assistant created for you which is attached to your submit button.

This topic is 4865 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.