Customizing Advanced Search

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
johnberman
User
Posts: 210

Customizing Advanced Search

Post by johnberman »

Hi

When I opt for Advance Search on a particular field it gives the user to use a whole variety of of option, can I customize this

For instance I want to remove the is Null option on a particular field

Also can you add an Alias so for instance using Is Null would be friendlier if it said - Contains No Data

Regards
John B


mobhar
User
Posts: 11726

Post by mobhar »

johnberman wrote:
Is Null would be friendlier if it said - Contains No Data

Simply put the following code in "Startup Script" that belongs to the "Search Page":

$(document).ready(function() {
$('select option:contains("is null")').text('Contains No Data');
});


johnberman
User
Posts: 210

Post by johnberman »

Thank You very helpful the friendly name

Is it possible to cut down the choices that are in the advance search ?

Regards
John B


mobhar
User
Posts: 11726

Post by mobhar »

Let's say you want to remove the "is null" option from "ShipName" field:

$(document).ready(function() {
$("#z_ShipName option[value='IS NULL']").remove();
});


Post Reply