Default Searches

Setting a default search is a way to restrict visitors to a subset of data in a data table. to do this change the radio button setting to "Records found by the 'Default Search' defined below." Then define the search criteria (one or more criteria) in the table below.
Checking the "Visitors will only be able to find records contained withing the Default Search results set" box is what actually restricts visitors to the subset of records. Leaving this unchecked means the search is performed initially but visitors can search anf view records that do not fit the default search criteria.
Using the 50 States example, the settings seen above restrict the visitor to only viewing records for 13 states, the original colonies. Unchecking the checkbox at the bottom will give them a list of the original colonies when they first view the section, but they would be able to look up other states as well.
Search Tips
Here are some tips for defining default searches:
- You can search the system fields.
- Use the values "true" and "false" for checkbox fields.
- You can use the value "<CurrentDate>" in a date field. You can even do math with this parameter (e.g. "<CurrentDate> - 30" returns anything with a date within the last 30 days. This can be used with the Date Created and Date Modified system fields.
- You can use the value "<CurrentUser>" with the Created By and Modified By system fields. This is good for allowing a user to only be able to edit records they created.