Hi Everyone,
Got a problem, need some help 🙁
I have been asked to add a webpart to a page that has a single field & a search button on it to search a document library- the Google effect I suppose!
I have already configured the searchs, so using the OOTB box search works a dream but this is not how it is wanted.
I have the bear bones in place using Java e.g. the search field & a button but I am at a loss on how to find the name of the fields that the OOTB query uses to search the document libraries.
Does anyone know of any documentation on how to do a custom (simple) search or at least how to get the field names to add to the string for the search (does that make sense?).
Any pointer, kb’s would be great
T.i.a
Jonathan
P.s. have attached example of my code that isn’t working #embarassed
hey Jonathan…
do you have JQuery at your disposal on that page ? It’s easy to get hold of client side html elements using that ?
What’s this line doing ?
var DocName = escapestr(document.all[Title’&’Fid].value);
is that the bit you are stuck with ?
If so, this will help you out ; http://www.javascript-coder.com/javascript-form/getelementbyid-form.phtml
I would try and test it out now, but I am being nagged to go watch “Games of Thrones”..
If you are still stuck tomorrow, I can have a quick look, but i am sure that article will help.
BTW – you can also debug JS using IE Developer tools plug-in.