Form with 'Do Not Show Again'?
Can you use localStorage in W5 to show a form on startup that lets the user select ' Do Not Show Again' or something similar?
-
Unfortunately I've been told by Geocortex support localStorage has not yet been exposed in WF5. Have submitted to ideas.
0 -
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
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer