Skip to main content

Form with 'Do Not Show Again'?

Comments

2 comments

  • Permanently deleted user

    Unfortunately I've been told by Geocortex support localStorage has not yet been exposed in WF5. Have submitted to ideas.

    0
  • Permanently deleted user

    Until W5 exposes the localStorage property we leveraged the Bootstrap Modal to handle a modal window directly on the index page of the html5 viewer, accessing the localStorage for a 'Do Not Show Again' checkbox. It's a hack but comes out quite nice for our needs.

     

    /*Show modal window on document ready if doNotShowAgain === 'False' in local storage*/

     

    $(document).ready(function(){

    var lS = localStorage.getItem("doNotShowAgain");

    if (lS === "False") {

    $("#myModal").modal('show');

    }

    });

     

    0

Please sign in to leave a comment.