Announcement

Collapse
No announcement yet.

Search by All Radio Button

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Search by All Radio Button

    Hi, how can I make the Search function in Sellerdeck 2016 Business default to the All radio button rather than Any?
    "Look for products containing......"

    #2
    The "All" radio option should be the default. Perhaps someone has changed it.

    Look in Design / Library / Layouts / Web Page Inner Layout / Search Page Bulk Area RWD.
    The following two lines are from the standard code where "All" is selected:
    Code:
                <input type="radio" name="TB" checked="checked" value="A" />
    And
    Code:
                <input type="radio" name="TB" value="O" />
    To have "Any" preselected use:
    Code:
                <input type="radio" name="TB" value="A" />
    And
    Code:
                <input type="radio" name="TB" checked="checked" value="O" />
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thank you very much Norman for your swift reply. I checked that section of code and, unless I am missing something, it appears correct. Here is that block of code:-

      <fieldset>
      <label><Actinic:Variable Name="SearchString"/></label>
      <div style="clear: both;">
      <input class="input-border" type="text" name="SS" size="40" />
      </div>
      <label class="fullWidth"><Actinic:Variable Name="SearchCombine"/></label>
      <div class="radio clearLeft shorter">
      <input type="radio" name="TB" checked="checked" value="A" />
      <label><Actinic:Variable Name="SearchAndPrompt"/></label>
      </div>
      <div class="radio wider">
      <input type="radio" name="TB" value="O" />
      <label><Actinic:Variable Name="SearchOrPrompt"/>&nbsp;<Actinic:Variable Name="SearchCombineText2"/></label>
      </div>
      <script language="javascript" type="text/javascript">
      <!--
      for (nIndex = 0; nIndex < document.forms.length; nIndex++)
      {
      if (document.forms[nIndex] && document.forms[nIndex].SS)
      {
      document.forms[nIndex].SS.focus();
      }
      }
      // -->

      Comment


        #4
        Apologies - the main search function is now defaulting to "All". However the quick search box on the main page seems to default to "Any"

        Comment


          #5
          This line in layout Standard Quick Search Bar determines the search type:
          Code:
              <input type="hidden" name="TB" value="O" />
          So change that "O" to "A" to get the All capability.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Working now perfectly. Thanks ever so much Norman.

            Comment

            Working...
            X