7 Replies Latest reply on Apr 10, 2016 6:35 AM by compuyam

    webApp search: current date

    compuyam Level 1

      In the web app search field "Date" should be the current date.

      Has anybody an idea how to manage this?


      i try to customize the DataPicker but without successs.


      Actually this is my Code:


      <form name="catcustomcontentform24647" method="post" onsubmit="return checkWholeForm24647(this)" action="/Default.aspx?CCID=16168&FID=125881&ExcludeBoolFalse=True&PageID={module_oid}">

        <table class="webform" cellspacing="0" cellpadding="2" border="0">

          <tr>

            <td class="h4-texttitel"><select name="CAT_Custom_1" id="CAT_Custom_1" class="cat_dropdown">

                <option value="*">-- Alle Themen--</option>

                <option value="Gottesdienst">Gottesdienst</option>

                <option value="Konzerte">Konzerte</option>

                <option value="Konfprogramm">Konfprogramm</option>

                <option value="Mittagstisch">Mittagstisch</option>

                <option value="Jassnachmittage">Jassnachmittage</option>

                <option value="Gespräche">Gespräche</option>

                <option value="Erwachsenenbildung">Erwachsenenbildung</option>

                <option value="Spiritualität">Spiritualität</option>

                <option value="Kirchgemeindeversammlung">Kirchgemeindeversammlung</option>

              </select></td>

            <td><input type="text" name="CAT_Custom_2_Min" id="CAT_Custom_2_Min" class="cat_textbox" readonly style="background-color:#F0F0F0;" onfocus="displayDatePicker('CAT_Custom_2_Min');return false;"  placeholder="mm/dd/yyyy"/></td>

          </tr>

          <tr>

            <td><input class="cat_button" type="submit" value="Termine anzeigen" /></td>

          </tr>

        </table>

      </form>

      <script type="text/javascript" src="/CatalystScripts/ValidationFunctions.js?vs=b2004.r486545-phase1"></script>

      <script type="text/javascript" src="/CatalystScripts/Java_DatePicker.js?vs=b2004.r486545-phase1"></script>

      <script type="text/javascript">

          function checkWholeForm24647(theForm) {

              var why = "";

              if (theForm.CAT_Custom_2_Min)

                  if (theForm.CAT_Custom_2_Min.value.length > 0) why += checkDate(theForm.CAT_Custom_2_Min.value, "Datum");

              if (theForm.CAT_Custom_2_Max)

                  if (theForm.CAT_Custom_2_Max.value.length > 0) why += checkDate(theForm.CAT_Custom_2_Max.value, "Datum");

              if (why != "") {

                  alert(why);

                  return false;

              }

              return true;

          }

      </script>

       

       

      Thanks for helping