Page 1 of 1

Quick Search Button

Posted: 2018-04-08 04:18
by ronwill
Hi,

I would like to be able to have functioning quick search button on Detailed View pages just as it shows (position etc.) on the Table views, for all pages.

Can anyone tell me how I can do this as so far I'm not getting there!

Cheers,
Ron

Re: Quick Search Button

Posted: 2018-04-16 12:57
by R Tammam
Hello ronwill,
you can do it by inserting the following html code in tablename-dv.js using jquery

Code: Select all

<input type="text" id="SearchString" name="SearchString" value="" class="form-control" placeholder="Quick Search">

<button name="Search_x" value="1" id="Search" type="submit" onclick="document.myform.SelectedID.value = ''; document.myform.NoDV.value=1; return true;" class="btn btn-default" title="Quick Search"><i class="glyphicon glyphicon-search"></i></button>

<button name="ClearQuickSearch" value="1" id="ClearQuickSearch" type="submit" onclick="$j('#SearchString').val(''); document.myform.SelectedID.value = ''; document.myform.NoDV.value=1; return true;" class="btn btn-default" title="Show All"><i class="glyphicon glyphicon-remove-circle"></i></button>