We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10457
    • 5 Posts
    Can anyone help me to put an input value in a search box??

    I have set the &clearDefault to 1.
    I have the following in the template:

    <div id="searchbx">
    [!AjaxSearch? &ajaxSearch=`0` &AS_landing=`8` &showMoreResults=`1` &cleardefault=`1` &inputvalue=`search` &addJscript=`0` &extract=`0` &AS_showResults=`0` &searchStyle=`partial` &useAllWords=`true` &stripHTML=`true` &stripSnippets=`true` &highlightResult=`0` !]
    </div> <!-- End searchbx -->

    I have the php files uploaded but don’t understand how to use Modx in any of the following:

    "To work the input text should contains the class="cleardefault"
    e.g (from templates/layoutTpl):
    <input class="cleardefault" id="ajaxSearch_input" type="text" name="search" value="[+as.inputValue+]"[+as.inputOptions+] />

    Thankyou
      • 10457
      • 5 Posts
      Solved - by changing english AjaxSearch language file...