Jump to content

markItUp

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

markItUp's Achievements

  1. If the DataPages were split into two instead of one, could this still work? For example if one DataPage was under "Web Form Wizard - Configure Fields" instead of "Search and Report Wizard - Configure Search Fields" would this highlighting script still work? I am having trouble implementing it and wanted to know if it was even possible because even though you can add a Header & Footer to the "Web Form Wizard - Configure Fields" section there is no "Search and Report Wizard - Configure Results Page Fields". So, when you go under the other DataPage, there is a "Search and Report Wizard - Configure Results Page Fields" where you can put in the second part of the script, but there is no "Search and Report Wizard - Configure Search Fields" to put the first part of the script. The type of my first DataPage is Forms: Submission Form and the type of the second is Reports: Tabular. I wanted to know if it was even possible to do this.
  2. Hey, this works! I had to rename my table but it works. Thank you very much! Below is the code I used just incase it is needed in the future. - In the Search and Report Wizard - Configure Search Fields in the Header <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js"></script> - In the Search and Report Wizard - Configure Results Page Fields in the Footer <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js"></script> <script> document.addEventListener('DataPageReady', function (event) { let searched = document.querySelector("input[name='Value1_1']").value; if (searched !== "") { var instance = new Mark(document.querySelector("table[class*='cbResultSetTable']").tBodies[0]); instance.mark(searched); } }); </script>
  3. Does the mark.js example still work? I am having trouble implementing it. When attempting, my browser console states: ReferenceError: Can't find variable: Mark When using your first example, I had to change the code around a bit to make it work. Unfortunately I couldn't make back to back searches and the user would see the mark tags in the search bar which may confuse my users. I have attached photos of what happens with one search and what happens when another search is made without reloading the page. In the second photo, no keyword would highlight. This is why I would like to implement the mark.js solution. Any guidance is much appreciated.
×
×
  • Create New...