AnsweredAssumed Answered

Pass Extra Arguments in Faceted Search  URL

Question asked by riya.soni42 on Apr 8, 2017
Latest reply on Apr 8, 2017 by afaust

Hi,

 

 

I have created one extra checkbox in Alfresco Advanced Search page apart of custom content types and their meta data form fields, so when I click on Search button at that time onSearchClick function is called in advsearch.js (client side js).

 In that function there are 4 parameters are passed.

 

site: (this.options.siteId.length !== 0 ? ("site/" + this.options.siteId + "/") : ""),

terms: encodeURIComponent(Dom.get(this.id + "-search-text").value),
query: encodeURIComponent(YAHOO.lang.JSON.stringify(formData)),
 scope: this.options.searchScope.toString()

 

I want to add one more argument in this function, so when I have 5th argument like fts : true, so I got that value in url.

 

But in back end search.lib.js and search.get.js, that argument value comes "null" in args object.

So can anyone have any idea how to pass that extra argument value in search url.

Thanks in advance,

Outcomes