Using Splash Widget as a Whats New Dialog?

231
1
Jump to solution
04-02-2019 06:17 AM
TimDine
Occasional Contributor II

I'd like to use the splash widget as a What's New dialog.  I'd like users to check the don't show this again, but when I make new changes I want to now show the dialog to everyone again?  Has anyone implemented something like this?

A few ideas I've had are:

  • Change the widget so that it has a new property that it checks in the cookie to check a date stored in the cookie other than the expire date.
  • Change the widget or it's configuration so that it uses a cookie with a new name each time that I have new updates.

Thoughts?  Thanks!

0 Kudos
1 Solution

Accepted Solutions
TimDine
Occasional Contributor II

I think the way I'm going to deal with this is to modify the widget to have an extra configurable property that will be used in the naming of the cookie that is used to decide to show the splash screen again or not.  The property will get updated by the administrator anytime that they add updated "what's new" information to the splash screen (or a new link to a separate blog post about the update), the property must be unique so will arbitrarily contain the date the update was made.  

It will cause cookies to build up on the users pc, but I'm not too worried about hitting the max cookies or max cookies per domain.

I've got the main widget working, now I need to get the extra parameter added to the configuration page so it can be updated in the WAB instead of just directly in the json.

_getCookieKey: function() {
        return 'isfirst_' + this.config.splash.whatsNewPrefix + encodeURIComponent(utils.getAppIdFromUrl());
      },

edited to add code.

View solution in original post

1 Reply
TimDine
Occasional Contributor II

I think the way I'm going to deal with this is to modify the widget to have an extra configurable property that will be used in the naming of the cookie that is used to decide to show the splash screen again or not.  The property will get updated by the administrator anytime that they add updated "what's new" information to the splash screen (or a new link to a separate blog post about the update), the property must be unique so will arbitrarily contain the date the update was made.  

It will cause cookies to build up on the users pc, but I'm not too worried about hitting the max cookies or max cookies per domain.

I've got the main widget working, now I need to get the extra parameter added to the configuration page so it can be updated in the WAB instead of just directly in the json.

_getCookieKey: function() {
        return 'isfirst_' + this.config.splash.whatsNewPrefix + encodeURIComponent(utils.getAppIdFromUrl());
      },

edited to add code.