Page 1 of 1

Customizing Advanced Search

Posted: Sat Feb 18, 2017 11:24 pm
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


Re: Advance Search Customise ?

Posted: Sun Feb 19, 2017 1:21 am
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');
});


Re: Advance Search Customise ?

Posted: Sun Feb 19, 2017 1:48 am
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


Re: Advance Search Customise ?

Posted: Mon Feb 20, 2017 9:23 am
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();
});