Jump to content

BethShaffer

Members
  • Content Count

    14
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by BethShaffer

  1. Ha! I got this working. I missed the step of having to name the ID for the No Results Message in Localizations. If someone else needs to change the header message when no results are found, this is how. I found some clues using this online help page, https://howto.caspio.com/integration/map-mashup/hiding-the-map-when-no-results-are-found/ Go to Localizations and choose the language you're using, and go to #351 No Records Found. Add a custom message if there isn't already one, and put a div tag around it with an ID, mine is "norecord" for this example. Then add another div
  2. I've also tried giving the <div> an ID and then replacing its contents if there are no search results. <script type="text/javascript"> if (document.getElementById("norecord")) { document.getElementById("HOW").innerHTML = "Message to be Displayed if No Search Results"; } </script> <div id="HOW">Normal Message Displayed on the Page</div>
  3. Here is my attempt, which of course, does not work. <script type="text/javascript"> if (document.getElementById("norecord")) { document.getElementById("message").innerHTML = "ONE MESSAGE"; } else { document.getElementById("message").innerHTML = "DIFFERENT MESSAGE"; } </script>
  4. Good morning, My search page has a header that displays information on how to use the page. When the search returns no results, that information is not needed and I want to display a different message on what they can do next. I know there is a place in my Style for a "no results found" message, but this does not remove the unneeded information in my header, it just displays new text below it and it makes the page too long. I need the code for displaying two different messages in the header of my page; one when search results are returned, and another when they are null. I kno
×
×
  • Create New...